app/soc/views/helper/requests.py
changeset 1670 4d9bd851a5f5
parent 1631 25ec972b5aa2
child 2867 e8d86272e6ea
equal deleted inserted replaced
1669:47c1048fc4ef 1670:4d9bd851a5f5
    48     # keep only the first argument if multiple are present
    48     # keep only the first argument if multiple are present
    49     value_idx = value_idx[0]
    49     value_idx = value_idx[0]
    50 
    50 
    51   try:
    51   try:
    52     # GET parameter 'param_name' should be an integer value index
    52     # GET parameter 'param_name' should be an integer value index
    53     value_idx = int(value_idx)
    53     value_idx = int(value_idx) if value_idx is not None else -1
    54   except ValueError:
    54   except ValueError:
    55     # ignore bogus or missing parameter values, so return None (no message)
    55     # ignore bogus or missing parameter values, so return None (no message)
    56     return None
    56     return None
    57     
    57     
    58   if value_idx < 0:
    58   if value_idx < 0: