incubator-allura-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From brond...@apache.org
Subject [11/50] [abbrv] git commit: [#6056] Catch IndexError on invalid wiki page version
Date Thu, 11 Jul 2013 21:58:31 GMT
[#6056] Catch IndexError on invalid wiki page version

Signed-off-by: Cory Johns <cjohns@slashdotmedia.com>


Project: http://git-wip-us.apache.org/repos/asf/incubator-allura/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-allura/commit/fe6f4b26
Tree: http://git-wip-us.apache.org/repos/asf/incubator-allura/tree/fe6f4b26
Diff: http://git-wip-us.apache.org/repos/asf/incubator-allura/diff/fe6f4b26

Branch: refs/heads/db/6277
Commit: fe6f4b26fe5b35f4daf0aba6a293e1a81d0445eb
Parents: 8516efb
Author: Cory Johns <cjohns@slashdotmedia.com>
Authored: Tue Jul 2 00:49:06 2013 +0000
Committer: Tim Van Steenburgh <tvansteenburgh@gmail.com>
Committed: Sun Jul 7 03:48:41 2013 +0000

----------------------------------------------------------------------
 ForgeWiki/forgewiki/wiki_main.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-allura/blob/fe6f4b26/ForgeWiki/forgewiki/wiki_main.py
----------------------------------------------------------------------
diff --git a/ForgeWiki/forgewiki/wiki_main.py b/ForgeWiki/forgewiki/wiki_main.py
index 650d271..9cc0ffc 100644
--- a/ForgeWiki/forgewiki/wiki_main.py
+++ b/ForgeWiki/forgewiki/wiki_main.py
@@ -439,7 +439,7 @@ class PageController(BaseController, FeedController):
         if not version: return self.page
         try:
             return self.page.get_version(version)
-        except ValueError:
+        except (ValueError, IndexError):
             return None
 
     @expose()


Mime
View raw message