diff --git a/pyrogram/client/dispatcher/dispatcher.py b/pyrogram/client/dispatcher/dispatcher.py index f1c14fbe..fa65f987 100644 --- a/pyrogram/client/dispatcher/dispatcher.py +++ b/pyrogram/client/dispatcher/dispatcher.py @@ -143,13 +143,15 @@ class Dispatcher: if handler.check(update): args = (update,) - if args is not None: - try: - handler.callback(self.client, *args) - except Exception as e: - log.error(e, exc_info=True) - finally: - break + if args is None: + continue + + try: + handler.callback(self.client, *args) + except Exception as e: + log.error(e, exc_info=True) + finally: + break except Exception as e: log.error(e, exc_info=True)