Skip to content

Commit aa96318

Browse files
committed
fix: get alerts from stats instead of local var
1 parent 2f8c3d4 commit aa96318

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

debug_toolbar/panels/alerts.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ def health_level(self):
9797
"""
9898
Return the health level of the panel based on the alerts.
9999
"""
100-
if not self.alerts:
100+
if not self.get_stats().get("alerts"):
101101
return HealthLevel.NONE
102102

103103
return HealthLevel.CRITICAL

0 commit comments

Comments
 (0)