resolve some codacy problems

This commit is contained in:
Bastian Schroll 2016-10-03 16:32:54 +02:00
parent d16b28ce4f
commit 6b520881b6
5 changed files with 3 additions and 5 deletions

View file

@ -44,7 +44,6 @@ def processAlarmHandler(typ, freq, data):
except:
logging.error("Error in starting alarm processing async")
logging.debug("Error in starting alarm processing async", exc_info=True)
pass
else:
processAlarm(typ, freq, data)
@ -98,4 +97,3 @@ def processAlarm(typ, freq, data):
except:
logging.error("Error in alarm processing")
logging.debug("Error in alarm processing", exc_info=True)
pass

View file

@ -63,7 +63,6 @@ def decode(freq, decoded):
except:
logging.error("processing alarm failed")
logging.debug("processing alarm failed", exc_info=True)
pass
# in every time save old data for double alarm
doubleFilter.newEntry(fms_id)
else:

View file

@ -121,7 +121,6 @@ def decode(freq, decoded):
except:
logging.error("processing alarm failed")
logging.debug("processing alarm failed", exc_info=True)
pass
# in every time save old data for double alarm
doubleFilter.newEntry(poc_id+poc_sub, poc_text)
else:

View file

@ -75,7 +75,6 @@ def decode(freq, decoded):
except:
logging.error("processing alarm failed")
logging.debug("processing alarm failed", exc_info=True)
pass
# in every time save old data for double alarm
doubleFilter.newEntry(zvei_id)
else:

View file

@ -75,6 +75,9 @@ def run(typ,freq,data):
try:
if configHandler.checkConfig("template"): #read and debug the config (let empty if no config used)
logging.debug(globalVars.config.get("template", "test1"))
logging.debug(globalVars.config.get("template", "test2"))
########## User Plugin CODE ##########
if typ == "FMS":
logging.warning("%s not supported", typ)