From f290908ccb695add38419921725cb6fe734438fb Mon Sep 17 00:00:00 2001 From: Liam Steckler Date: Thu, 15 Feb 2024 07:18:08 -0800 Subject: [PATCH] Confirm that there were events returned from SCL --- scl.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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: