moved delete to the end of the function

This commit is contained in:
f-kessler 2018-08-11 13:37:30 +02:00 committed by GitHub
parent 8c1351ccbd
commit ce144c82e1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -58,8 +58,8 @@ def multicastAlarmExec(freq, data):
try:
from includes import alarmHandler
alarmHandler.processAlarmHandler("POC", freq, data)
del multiList[:]
logging.debug("multicastAlarm finished - buffer cleared")
except:
logging.error("processing alarm failed")
logging.debug("processing alarm failed", exc_info=True)
del multiList[:]
logging.debug("multicastAlarm finished - buffer cleared")