mirror of
https://github.com/Schrolli91/BOSWatch.git
synced 2026-01-28 02:44:21 +01:00
resolve some codacy problems
This commit is contained in:
parent
d16b28ce4f
commit
6b520881b6
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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:
|
||||
|
|
|
|||
|
|
@ -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:
|
||||
|
|
|
|||
|
|
@ -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:
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in a new issue