Spaces:
Sleeping
Sleeping
File size: 404 Bytes
407046d | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 | # core/alert_manager.py
from core.alerters import BaseAlerter
class AlertManager(BaseAlerter):
def __init__(self, alerters: list[BaseAlerter]):
self.alerters = alerters
def send(self, message: str):
for alerter in self.alerters:
try:
alerter.send(message)
except Exception as e:
print("[AlertManager] Alerter failed:", e)
|