Fixed a bug discovered by excepting the proper exception
Patch by: Sverre Rabbelier
--- 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