Handle errors better during obis parsing

This commit is contained in:
Andreas Thienemann 2022-02-27 04:46:20 +01:00
parent 034801e385
commit 4fcf826e03

View File

@ -44,7 +44,7 @@ class TasmotaSMLParser:
return False
except Exception as e:
self.obis_errors.append(
{"frame": frame, "hex": binascii.b2a_hex(frame, b" "), "msg": e.args[0]}
{"frame": frame, "hex": binascii.b2a_hex(frame, b" "), "msg": e}
)
return None
return msgs