mirror of
https://git.ianrenton.com/ian/spothole.git
synced 2026-04-29 18:25:58 +00:00
Trap NaN frequencies and return None instead
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user