mirror of
https://github.com/evennia/evennia.git
synced 2026-04-06 07:57:16 +02:00
fix: allow for corner case
This commit is contained in:
parent
cc6868ffa4
commit
1510fc1d17
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)
|
||||
try:
|
||||
return int(inp)
|
||||
except TypeError:
|
||||
return inp
|
||||
except ValueError:
|
||||
return inp
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue