f(*args) fallback

This commit is contained in:
Dpeta 2022-03-17 20:01:20 +00:00
parent 8e3c79c4b9
commit 5f31a82712

View file

@ -103,8 +103,11 @@ class CommandHandler(object):
return return
PchumLog.debug('f %s' % f) PchumLog.debug('f %s' % f)
f(*args) try:
f(*args)
except TypeError as e:
logging.exception("Failed to pass command, did the server pass an unsupported paramater?\n%s" % e)
@protected @protected
def __unhandled__(self, cmd, *args): def __unhandled__(self, cmd, *args):