From afaccc96d6ed75b73ddde1d20fdf8025671a92a3 Mon Sep 17 00:00:00 2001 From: Wolfgang Hottgenroth Date: Fri, 4 Feb 2022 23:06:43 +0100 Subject: [PATCH] more error handling --- opcua2mqtt/MqttPublish.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/opcua2mqtt/MqttPublish.py b/opcua2mqtt/MqttPublish.py index da4b46d..3df8211 100644 --- a/opcua2mqtt/MqttPublish.py +++ b/opcua2mqtt/MqttPublish.py @@ -27,4 +27,6 @@ class MqttPublish(AbstractMqttPublisher): if self.killBill: logger.error("killbill received") break + except Exception as e: + logger.error(f"Exception {type(e)} received in MQTT local loop: {e}")