Slightly better prettyfication of messages
@@ -89,6 +89,9 @@ def display():
filename = sys.argv[1]
blobs = list(readbytes_multiple(filename, HERE))
for blob in blobs:
+ try:
+ result = Message.decode(blob)
+ except:
result, _ = pop_tlv(blob)
print("=" * 80)
print(result.pretty())
