fix: allow for corner case
This commit is contained in:
parent
bafa9f05bb
commit
98d9e5d198
1 changed files with 2 additions and 0 deletions
|
|
@ -659,6 +659,8 @@ def funcparser_callable_toint(*args, **kwargs):
|
||||||
inp = funcparser_callable_eval(*args, **kwargs)
|
inp = funcparser_callable_eval(*args, **kwargs)
|
||||||
try:
|
try:
|
||||||
return int(inp)
|
return int(inp)
|
||||||
|
except TypeError:
|
||||||
|
return inp
|
||||||
except ValueError:
|
except ValueError:
|
||||||
return inp
|
return inp
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue