From ce144c82e19fa3517971cc94ba27f4d2a5c54703 Mon Sep 17 00:00:00 2001 From: f-kessler Date: Sat, 11 Aug 2018 13:37:30 +0200 Subject: [PATCH] moved delete to the end of the function --- includes/multicastAlarm.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/includes/multicastAlarm.py b/includes/multicastAlarm.py index e9b8122..d8736fd 100644 --- a/includes/multicastAlarm.py +++ b/includes/multicastAlarm.py @@ -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")