1
0
mirror of https://github.com/thingsboard/thingsboard-gateway synced 2025-10-26 22:31:42 +08:00

Added not connected error handling

This commit is contained in:
imbeacon
2024-06-25 08:27:40 +03:00
parent 94c398d827
commit 39c8784f8a

View File

@@ -1164,6 +1164,10 @@ class TBGatewayService:
success = True
else:
break
except RuntimeError as e:
log.error("Error while sending data to ThingsBoard, it will be resent.",
exc_info=e)
success = False
except Exception as e:
log.error("Error while sending data to ThingsBoard, it will be resent.",
exc_info=e)