fix: allow for corner case

This commit is contained in:
Mike Gray 2022-10-31 20:55:37 -05:00
parent bafa9f05bb
commit 98d9e5d198

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