2 parents 3e1cb08 + b0ad07f commit 1197434Copy full SHA for 1197434
1 file changed
telegram/dispatcher.py
@@ -25,7 +25,6 @@
25
from inspect import getargspec
26
from threading import Thread, BoundedSemaphore, Lock
27
from re import match
28
-from traceback import print_exc
29
30
from telegram import (TelegramError, Update, NullHandler)
31
@@ -188,7 +187,7 @@ def start(self):
188
187
189
# All other errors should not stop the thread, just print them
190
except:
191
- print_exc()
+ self.logger.exception()
192
else:
193
self.__lock.release()
194
self.logger.info('Dispatcher thread stopped')
0 commit comments