We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 99f528b commit d5f2532Copy full SHA for d5f2532
1 file changed
elementary/monitor/api/alerts/alert_filters.py
@@ -38,13 +38,10 @@ def _get_alert_node_name(alert: PendingAlertSchema) -> Optional[str]:
38
39
40
def _safe_parse_status(raw_status: Optional[str]) -> Optional[Status]:
41
+ """Parse a raw alert status into a Status enum, or None if it isn't recognized."""
42
try:
43
return Status(raw_status)
44
except ValueError:
- logger.warning(
45
- "Skipping alert with unrecognized status %r (not in Status enum).",
46
- raw_status,
47
- )
48
return None
49
50
0 commit comments