incubator-allura-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From john...@apache.org
Subject [4/5] git commit: [#6056] Catch IndexError on invalid wiki page version
Date Tue, 02 Jul 2013 02:03:59 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/1491096f
Tree: http://git-wip-us.apache.org/repos/asf/incubator-allura/tree/1491096f
Diff: http://git-wip-us.apache.org/repos/asf/incubator-allura/diff/1491096f

Branch: refs/heads/cj/6056
Commit: 1491096f05b9cf223d53ae0bf0ad7856252bb25c
Parents: bd4200d
Author: Cory Johns <cjohns@slashdotmedia.com>
Authored: Tue Jul 2 00:49:06 2013 +0000
Committer: Cory Johns <cjohns@slashdotmedia.com>
Committed: Tue Jul 2 00:49:06 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/1491096f/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