From a2daf4850d0f628b1c330c503e63dfb30ab1e8ef Mon Sep 17 00:00:00 2001 From: Philipp Mundhenk Date: Wed, 9 Oct 2024 21:58:39 +0200 Subject: [PATCH] fixed premature exit made sure scan doesn't exit if telegram not found --- script/trigger_telegram.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/script/trigger_telegram.py b/script/trigger_telegram.py index 591e7f0..839089c 100755 --- a/script/trigger_telegram.py +++ b/script/trigger_telegram.py @@ -15,7 +15,7 @@ def trigger_telegram( print( " INFO: TELEGRAM_TOKEN or TELEGRAM_CHATID environment variables not set, skipping Telegram trigger." ) - exit(1) + return # URL encode the message encoded_message = urllib.parse.quote(message, safe="")