mirror of
https://github.com/python-telegram-bot/python-telegram-bot.git
synced 2025-03-16 12:25:45 +01:00
fix exception logging
This commit is contained in:
parent
aa125e59fb
commit
623863cee1
1 changed files with 2 additions and 1 deletions
|
@ -187,7 +187,8 @@ class Dispatcher:
|
|||
|
||||
# All other errors should not stop the thread, just print them
|
||||
except:
|
||||
self.logger.exception()
|
||||
self.logger.exception("An uncaught error was raised while "
|
||||
"processing an update")
|
||||
else:
|
||||
self.__lock.release()
|
||||
self.logger.info('Dispatcher thread stopped')
|
||||
|
|
Loading…
Add table
Reference in a new issue