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

[12/50] [abbrv] 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/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/tv/6355
Commit: fe6f4b26fe5b35f4daf0aba6a293e1a81d0445eb
Parents: 8516efb
Author: Cory Johns <cj...@slashdotmedia.com>
Authored: Tue Jul 2 00:49:06 2013 +0000
Committer: Tim Van Steenburgh <tv...@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()