Update Telegram.py

This commit is contained in:
PeterLaemmle 2017-05-07 19:23:45 +02:00 committed by GitHub
parent 78092389e9
commit d7896459ca

View file

@ -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)