From 5f31a82712465abbd91d8dd9448676b4a7e8f2f5 Mon Sep 17 00:00:00 2001 From: Dpeta Date: Thu, 17 Mar 2022 20:01:20 +0000 Subject: [PATCH] f(*args) fallback --- oyoyo/cmdhandler.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/oyoyo/cmdhandler.py b/oyoyo/cmdhandler.py index 6c09f0b..974aeb4 100644 --- a/oyoyo/cmdhandler.py +++ b/oyoyo/cmdhandler.py @@ -103,8 +103,11 @@ class CommandHandler(object): return 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 def __unhandled__(self, cmd, *args):