Simplify the event map

This commit is contained in:
2026-05-09 12:50:27 -04:00
parent c1eac5a0e0
commit fca684f709

View File

@ -891,7 +891,10 @@ def event_label(event_type):
try: try:
with open(LABEL_MAP, 'r') as f: with open(LABEL_MAP, 'r') as f:
labels = json.load(f) | labels oc_labels = json.load(f)
if isinstance(oc_labels, dict):
oc_labels.update(labels)
labels = oc_labels
except Exception: except Exception:
pass pass