equal
deleted
inserted
replaced
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: |