mirror of
https://github.com/evennia/evennia.git
synced 2026-03-17 05:16:31 +01:00
Merge pull request #1640 from bookofportals/command-callable-check
Change callability check
This commit is contained in:
commit
9a7967f1ee
1 changed files with 2 additions and 2 deletions
|
|
@ -296,9 +296,9 @@ class CmdSet(with_metaclass(_CmdSetMeta, object)):
|
|||
result (any): An instantiated Command or the input unmodified.
|
||||
|
||||
"""
|
||||
try:
|
||||
if callable(cmd):
|
||||
return cmd()
|
||||
except TypeError:
|
||||
else:
|
||||
return cmd
|
||||
|
||||
def _duplicate(self):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue