From 8c7cd39bbdf860e77888f550bae1eb9d50ca47bc Mon Sep 17 00:00:00 2001 From: Dmitrii Morozov Date: Thu, 9 May 2024 21:06:13 +0200 Subject: Fixed typo in record stats scheduler, disable exiting on telebot exception --- telegram_bot/__init__.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'telegram_bot') 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 -- cgit v1.2.3