summaryrefslogtreecommitdiff
path: root/telegram_bot/__init__.py
diff options
context:
space:
mode:
Diffstat (limited to 'telegram_bot/__init__.py')
-rw-r--r--telegram_bot/__init__.py5
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