openenergymonitor / emonhub

Python service linking and decoding input to MQTT & Emoncms
90 stars 83 forks source link

Add try catch for non UTF-8 charaters #188

Open borpin opened 1 year ago

borpin commented 1 year ago

https://github.com/openenergymonitor/emonhub/blob/afa562bb371a2a426c80ed15a96d808efefc2fed/src/interfacers/EmonHubSerialInterfacer.py#L74

https://community.openenergymonitor.org/t/valueerror-invalid-literal-for-int-with-base-10-ok/22567/1