From d7896459caa18014e11de8266f45a757d20022eb Mon Sep 17 00:00:00 2001 From: PeterLaemmle Date: Sun, 7 May 2017 19:23:45 +0200 Subject: [PATCH] Update Telegram.py --- plugins/Telegram/Telegram.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/Telegram/Telegram.py b/plugins/Telegram/Telegram.py index 606fd9d..fc4acc7 100644 --- a/plugins/Telegram/Telegram.py +++ b/plugins/Telegram/Telegram.py @@ -78,7 +78,7 @@ def run(typ,freq,data): try: ########## User Plugin CODE ########## try: - if typ == "POC" or typ == "FMS" or typ == "ZVEI": + if typ in ("POC", "FMS", "ZVEI"): logging.debug("Read format and compose output for %s-message" % typ) # compose message content text = globalVars.config.get("Telegram", "%s_message" % typ)