Handle errors better during obis parsing
This commit is contained in:
parent
034801e385
commit
4fcf826e03
@ -44,7 +44,7 @@ class TasmotaSMLParser:
|
|||||||
return False
|
return False
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
self.obis_errors.append(
|
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 None
|
||||||
return msgs
|
return msgs
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user