mirror of
https://git.ianrenton.com/ian/spothole.git
synced 2026-09-20 22:37:44 +00:00
ruff fixes
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user