summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xtelegram_notify.py4
1 files changed, 4 insertions, 0 deletions
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',