diff --git a/scl.py b/scl.py index 0462b75..b67bc60 100644 --- a/scl.py +++ b/scl.py @@ -416,7 +416,7 @@ with Session(engine) as session: for active_outage in session.scalars(lookup_active_outages_statement): if ( not any(event["id"] == active_outage.scl_outage_id for event in scl_events) - and event + and scl_events ): # Event ID no longer exists in response if active_outage.most_recent_post_id: