mirror of
https://github.com/aljazceru/plugins.git
synced 2026-01-04 13:54:20 +01:00
historian: Do not crash if we get an unknown address type
This commit is contained in:
@@ -235,7 +235,8 @@ def parse_address(b):
|
||||
elif a.typ == 4:
|
||||
a.addr = b.read(35)
|
||||
else:
|
||||
raise ValueError("Unknown address type {typ}".format(typ=a.typ))
|
||||
print(f"Unknown address type {a.typ}")
|
||||
return None
|
||||
a.port, = struct.unpack("!H", b.read(2))
|
||||
return a
|
||||
|
||||
|
||||
Reference in New Issue
Block a user