fix: allow for corner case

This commit is contained in:
Mike Gray 2022-10-31 20:55:37 -05:00
parent cc6868ffa4
commit 1510fc1d17
No known key found for this signature in database

View file

@ -659,6 +659,8 @@ def funcparser_callable_toint(*args, **kwargs):
inp = funcparser_callable_eval(*args, **kwargs)
try:
return int(inp)
except TypeError:
return inp
except ValueError:
return inp