From 5136c6fb31dbc9b2b916de9466afb062b054b56c Mon Sep 17 00:00:00 2001 From: Lars Gremme Date: Sat, 2 May 2020 13:03:18 +0200 Subject: [PATCH] Change if-else after net RIC (wrong definition) --- plugins/Divera/Divera.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/plugins/Divera/Divera.py b/plugins/Divera/Divera.py index 90d33c6..080e460 100644 --- a/plugins/Divera/Divera.py +++ b/plugins/Divera/Divera.py @@ -93,6 +93,9 @@ def run(typ, freq, data): elif typ == "POC": if isSignal(data["ric"]): + logging.debug("RIC is net ident") + return + else: # # building message for POC # @@ -110,10 +113,7 @@ def run(typ, freq, data): text = globalVars.config.get("Divera", "poc_text") title = globalVars.config.get("Divera", "poc_title") ric = globalVars.config.get("Divera", "poc_ric") - - else: - logging.debug("RIC is net ident") - return + else: logging.warning("Invalid type: %s", typ)