Skip to content

Commit

Permalink
Fixing code that ignores non-float values for Ubidots.
Browse files Browse the repository at this point in the history
  • Loading branch information
dajtxx committed Jul 23, 2024
1 parent 1191bb4 commit 68fb8b7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/python/delivery/UbidotsWriter.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 68fb8b7

Please sign in to comment.