##// END OF EJS Templates
safe_int should also catch TypeError
marcink -
r3218:c0b03512 beta
parent child Browse files
Show More
@@ -182,7 +182,7 b' def safe_int(val, default=None):'
182
182
183 try:
183 try:
184 val = int(val)
184 val = int(val)
185 except ValueError:
185 except (ValueError, TypeError):
186 val = default
186 val = default
187
187
188 return val
188 return val
General Comments 0
You need to be logged in to leave comments. Login now