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
+2 -2
View File
@@ -53,7 +53,7 @@ class WOTA(HTTPAlertProvider):
if len(ref_split) > 1:
ref_name = str(ref_split[1])
except Exception:
logger.warning(f"Could not parse WOTA alert title: {source_alert.description}")
logger.warning(f"Could not parse WOTA alert title: {source_alert.description}", exc_info=True)
# Pick apart the description
comment = None
@@ -64,7 +64,7 @@ class WOTA(HTTPAlertProvider):
if len(desc_split) > 1:
comment = desc_split[1].strip()
except Exception:
logger.warning(f"Could not parse WOTA alert description: {source_alert.description}")
logger.warning(f"Could not parse WOTA alert description: {source_alert.description}", exc_info=True)
time = datetime.strptime(source_alert.pub_date.content, self.RSS_DATE_TIME_FORMAT).astimezone(pytz.UTC)