From d554e1c1c9ff6ae5b828dc4281208bb705dd350b Mon Sep 17 00:00:00 2001 From: Evgeny Zinoviev Date: Wed, 16 Mar 2022 16:34:04 +0300 Subject: fix --- telegram_notify.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/telegram_notify.py b/telegram_notify.py index da05994..a834b34 100755 --- a/telegram_notify.py +++ b/telegram_notify.py @@ -52,6 +52,10 @@ if __name__ == '__main__': parse_mode='HTML', token=args.token, chat_id=args.chat_id) + + except KeyboardInterrupt: + pass + except: telegram_notify(text='error: '+escape(traceback.format_exc()), parse_mode='HTML', -- cgit v1.2.3