ruff fixes

This commit is contained in:
Ian Renton
2026-09-18 18:38:35 +01:00
parent 40033d122e
commit 1a1743d11c
18 changed files with 34 additions and 21 deletions
+4 -2
View File
@@ -54,7 +54,7 @@ class WOTA(HTTPSpotProvider):
if len(ref_split) > 1:
ref_name = str(ref_split[1])
except Exception:
logger.warning(f"Could not parse WOTA spot title: {source_spot.title}")
logger.warning(f"Could not parse WOTA spot title: {source_spot.title}", exc_info=True)
# Pick apart the description
freq_hz = None
@@ -75,7 +75,9 @@ class WOTA(HTTPSpotProvider):
if len(desc_split) > 2:
spotter = desc_split[2].replace("Spotted by ", "").replace(".", "").upper().strip()
except Exception:
logger.warning(f"Could not parse WOTA spot description: {source_spot.description}")
logger.warning(
f"Could not parse WOTA spot description: {source_spot.description}", exc_info=True
)
time = datetime.strptime(source_spot.pub_date.content, self.RSS_DATE_TIME_FORMAT).astimezone(
pytz.UTC