From 94118f7b6de2953a74aacf1263e19423f2b139ee Mon Sep 17 00:00:00 2001 From: "Matt Johnson (via Claude)" Date: Sun, 7 Jun 2026 01:32:15 +0000 Subject: [PATCH] fix(normalizer): handle None return from _parse_wfigs_incidents When the non-WF filter returns None, the caller must check before assigning to n[_kind]. Fixes TypeError on non-wildfire incidents. Co-Authored-By: Claude Opus 4.5 --- meshai/central_normalizer.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/meshai/central_normalizer.py b/meshai/central_normalizer.py index 09df508..4c39ba6 100644 --- a/meshai/central_normalizer.py +++ b/meshai/central_normalizer.py @@ -826,6 +826,8 @@ def normalize(envelope: dict) -> Optional[dict]: } if category_raw.startswith("fire.incident"): n = _parse_wfigs_incidents(inner_data, geo) + if n is None: + return None n["_kind"] = "wfigs_incident" return n if adapter == "wfigs_perimeters":