Apparently I can't code

This commit is contained in:
Ian Renton
2026-04-03 09:04:18 +01:00
parent a44b4f5eb6
commit 11dd8fa77f
10 changed files with 24 additions and 24 deletions

View File

@@ -338,8 +338,8 @@ class Spot:
self.dx_location_source = "DXCC"
# It looks like we can sometimes get a string into lat/lon, so reject that before we try looking anything up
if type(self.dx_latitude) == "str" or type(self.dx_longitude) == "str":
logging.warning("Received strings in lat/lon (" + str(self.dx_latitude) + ", " + str(self.dx_longitude) + "), rejecting it")
if isinstance(self.dx_latitude, str) or isinstance(self.dx_longitude, str):
logging.warning("Received strings in lat/lon (" + str(self.dx_latitude) + ", " + str(self.dx_longitude) + ") for call " + self.dx_call + ", rejecting it")
self.dx_latitude = None
self.dx_longitude = None