diff MoinMoin/action/diff.py @ 1682:30116d7d098a

request.rev is either revision integer (when given in form) or None
author Thomas Waldmann <tw AT waldmann-edv DOT de>
date Sun, 19 Nov 2006 20:44:41 +0100
parents d1ceb31f3d02
children ed44b93599b5
line wrap: on
line diff
--- a/MoinMoin/action/diff.py	Sun Nov 19 17:43:01 2006 +0100
+++ b/MoinMoin/action/diff.py	Sun Nov 19 20:44:41 2006 +0100
@@ -39,9 +39,8 @@
         rev1 = 0
 
     if rev1 == -1 and rev2 == 0:
-        try:
-            rev1 = int(request.form.get('rev', [-1])[0])
-        except StandardError:
+        rev1 = request.rev
+        if rev1 is None:
             rev1 = -1
 
     # spacing flag?