little changes in template modul

This commit is contained in:
Bastian Schroll 2015-05-18 22:10:23 +02:00
parent 2b2f8c54e6
commit 367e68e5fe
2 changed files with 7 additions and 6 deletions

View file

@ -5,7 +5,8 @@ import logging # Global logger
import globals # Global variables
def run(typ,freq,data):
try:
logging.info("ZVEI: %s wurde auf %s empfangen!", data["zvei"],freq)
except:
logging.exception("Error in Template Plugin")
try:
if typ == "ZVEI":
logging.info("ZVEI: %s wurde auf %s empfangen!", data["zvei"],freq)
except:
logging.exception("Error in Template Plugin")