From 68fb8b73a09516ac192e0070b0ab937d192a4251 Mon Sep 17 00:00:00 2001 From: David Taylor Date: Tue, 23 Jul 2024 19:44:12 +1000 Subject: [PATCH] Fixing code that ignores non-float values for Ubidots. --- src/python/delivery/UbidotsWriter.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/python/delivery/UbidotsWriter.py b/src/python/delivery/UbidotsWriter.py index 6290908..e431b06 100644 --- a/src/python/delivery/UbidotsWriter.py +++ b/src/python/delivery/UbidotsWriter.py @@ -85,7 +85,7 @@ def on_message(self, pd: PhysicalDevice, ld: LogicalDevice, msg: dict[Any], retr BrokerConstants.CORRELATION_ID_KEY: msg[BrokerConstants.CORRELATION_ID_KEY] } } - except ValueError: + except (ValueError, TypeError): # Ubidots will not accept values that are not floats, so skip this value. pass