You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@allura.apache.org by jo...@apache.org on 2013/07/02 04:03:59 UTC

[4/5] git commit: [#6056] Catch IndexError on invalid wiki page version

[#6056] Catch IndexError on invalid wiki page version

Signed-off-by: Cory Johns <cj...@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 <cj...@slashdotmedia.com>
Authored: Tue Jul 2 00:49:06 2013 +0000
Committer: Cory Johns <cj...@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()