We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 04ddeda commit 7f99c46Copy full SHA for 7f99c46
scripts/irpmon/irpmon_to_json.py
@@ -486,7 +486,10 @@ def parse_json_file(path):
486
bytedata = [a for a in codecs.decode(data, 'hex_codec')]
487
488
irp_id = int(entry.get("ID"))
489
- function = Function[entry.get("Major function")]
+ major_fun = entry.get("Major function")
490
+ if major_fun is None:
491
+ continue
492
+ function = Function[major_fun]
493
curtime = entry.get("Time")
494
status_constant = Status[entry.get("IOSB.Status constant")]
495
irp_address = int(entry.get("IRP address"), 0)
0 commit comments