diff --git a/telethon/update_state.py b/telethon/update_state.py index 8dd2ffad..9410125e 100644 --- a/telethon/update_state.py +++ b/telethon/update_state.py @@ -119,10 +119,10 @@ class UpdateState: handler(update) except StopIteration: break - except Exception as e: + except: # We don't want to crash a worker thread due to any reason - self._logger.debug( - '[ERROR] Unhandled exception on worker {}'.format(wid), e + self._logger.exception( + '[ERROR] Unhandled exception on worker {}'.format(wid) ) def process(self, update):