Trap NaN frequencies and return None instead

This commit is contained in:
Ian Renton
2026-03-31 20:30:40 +01:00
parent 8257ec492d
commit 041216c5bb
10 changed files with 24 additions and 24 deletions

View File

@@ -201,8 +201,8 @@ class Spot:
self.de_flag = lookup_helper.get_flag_for_dxcc(self.de_dxcc_id)
# Remove NaNs in frequency
if freq and freq == float("nan"):
freq = None
if self.freq and self.freq == float("nan"):
self.freq = None
# Band from frequency
if self.freq and not self.band: