Fixed a bug discovered by excepting the proper exception
authorSverre Rabbelier <srabbelier@gmail.com>
Wed, 04 Mar 2009 23:10:38 +0000
changeset 1670 4d9bd851a5f5
parent 1669 47c1048fc4ef
child 1671 7959bc7b77a9
Fixed a bug discovered by excepting the proper exception Patch by: Sverre Rabbelier
app/soc/views/helper/requests.py
--- a/app/soc/views/helper/requests.py	Wed Mar 04 23:10:13 2009 +0000
+++ b/app/soc/views/helper/requests.py	Wed Mar 04 23:10:38 2009 +0000
@@ -50,7 +50,7 @@
 
   try:
     # GET parameter 'param_name' should be an integer value index
-    value_idx = int(value_idx)
+    value_idx = int(value_idx) if value_idx is not None else -1
   except ValueError:
     # ignore bogus or missing parameter values, so return None (no message)
     return None