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:
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user