Skip to content

Commit 1197434

Browse files
committed
merge Tengah-master into master
2 parents 3e1cb08 + b0ad07f commit 1197434

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

telegram/dispatcher.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@
2525
from inspect import getargspec
2626
from threading import Thread, BoundedSemaphore, Lock
2727
from re import match
28-
from traceback import print_exc
2928

3029
from telegram import (TelegramError, Update, NullHandler)
3130

@@ -188,7 +187,7 @@ def start(self):
188187

189188
# All other errors should not stop the thread, just print them
190189
except:
191-
print_exc()
190+
self.logger.exception()
192191
else:
193192
self.__lock.release()
194193
self.logger.info('Dispatcher thread stopped')

0 commit comments

Comments
 (0)