mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2025-03-03 19:00:21 +03:00
Fix exception when logging exceptions
This commit is contained in:
parent
3db13ccdd2
commit
c6d30ffceb
|
@ -119,10 +119,10 @@ class UpdateState:
|
||||||
handler(update)
|
handler(update)
|
||||||
except StopIteration:
|
except StopIteration:
|
||||||
break
|
break
|
||||||
except Exception as e:
|
except:
|
||||||
# We don't want to crash a worker thread due to any reason
|
# We don't want to crash a worker thread due to any reason
|
||||||
self._logger.debug(
|
self._logger.exception(
|
||||||
'[ERROR] Unhandled exception on worker {}'.format(wid), e
|
'[ERROR] Unhandled exception on worker {}'.format(wid)
|
||||||
)
|
)
|
||||||
|
|
||||||
def process(self, update):
|
def process(self, update):
|
||||||
|
|
Loading…
Reference in New Issue
Block a user