meshtastic / python

The Python CLI and API for talking to Meshtastic devices
https://meshtastic.org
339 stars 150 forks source link

Error if message payload contains non-unicode bytes #27

Closed a-f-G-U-C closed 3 years ago

a-f-G-U-C commented 3 years ago

https://github.com/meshtastic/Meshtastic-python/blob/0d7ef3a1096cd3bf462ec505affb631d15fe4ae6/meshtastic/__init__.py#L373-L374 This throws an exception if the message payload is raw binary (protobuf, layered encryption etc). EDIT: ... which I understand that it shouldn't, but can still happen O:-)

geeksville commented 3 years ago

oops - thanks - I'll fix