Turns out "if x in list" returns true if list[x] = None, so guard against that by checking list.get(x) instead

This commit is contained in:
Ian Renton
2026-09-18 21:33:26 +01:00
parent 4b51dd9ba5
commit f0df4f38ca
13 changed files with 32 additions and 32 deletions
+1 -1
View File
@@ -36,7 +36,7 @@ class WWBOTA(SSESpotProvider):
dx_call=source_spot["call"].upper(),
de_call=source_spot["spotter"].upper(),
freq=float(source_spot["freq"]) * 1000000,
mode=Mode.from_name(source_spot["mode"].upper()) if "mode" in source_spot else None,
mode=Mode.from_name(source_spot["mode"].upper()) if source_spot.get("mode") else None,
comment=source_spot["comment"],
sig="WWBOTA",
sig_refs=refs,