diff --git a/core/cleanup.py b/core/cleanup.py index dd3d6ff..b95624e 100644 --- a/core/cleanup.py +++ b/core/cleanup.py @@ -38,7 +38,7 @@ class CleanupTimer: for id in list(self.alerts.iterkeys()): alert = self.alerts[id] if alert.expired(): - self.alerts.evict(id) + self.alerts.delete(id) self.status = "OK" self.last_cleanup_time = datetime.now(pytz.UTC)