diff --git a/pyModeS/decoder/adsb.py b/pyModeS/decoder/adsb.py index 1c899ce..16008f0 100644 --- a/pyModeS/decoder/adsb.py +++ b/pyModeS/decoder/adsb.py @@ -455,11 +455,9 @@ def nic_v2(msg: str, NICa: int, NICbc: int) -> tuple[int | None, int | None]: try: if isinstance(NIC, dict): NIC = NIC[NICs] - Rc = uncertainty.NICv2[NIC][NICs]["Rc"] except KeyError: - NIC = uncertainty.NA - Rc = uncertainty.NA + return None, None return NIC, Rc # type: ignore