diff options
Diffstat (limited to 'telegram_bot')
-rw-r--r-- | telegram_bot/__init__.py | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/telegram_bot/__init__.py b/telegram_bot/__init__.py index 95b7af8..1c68ade 100644 --- a/telegram_bot/__init__.py +++ b/telegram_bot/__init__.py @@ -56,7 +56,6 @@ class TelegramBot: class ExceptionHandler(telebot.ExceptionHandler): def handle(self, exception): - logging.error('Exception happened: {}'.format(str(exception))) - print(traceback.format_exc()) - sys.exit('Exiting with telebot exception') + logging.error('TeleBot exception happened: {}'.format(str(exception))) + logging.error(traceback.format_exc()) return True
\ No newline at end of file |