mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2025-08-04 19:12:29 +00:00
Fix exception when logging exceptions
This commit is contained in:
@@ -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):
|
||||
|
Reference in New Issue
Block a user