From e55e53a88eca4bcb22d081110172cbadc232d1bb Mon Sep 17 00:00:00 2001 From: Jesse Mortenson Date: Wed, 18 Dec 2024 14:55:21 -0600 Subject: [PATCH] IN: events: fix API response key that changed --- scrapers/in/events.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/scrapers/in/events.py b/scrapers/in/events.py index 0aeef14f93..ce4184ad35 100644 --- a/scrapers/in/events.py +++ b/scrapers/in/events.py @@ -24,11 +24,10 @@ def scrape(self): session_no = backoff(self.apiclient.get_session_no, self.session) response = self.apiclient.get("meetings", session=self.session) - meetings = response["meetings"] - if not meetings["items"]: + if not response["items"]: raise EmptyScrape("No meetings found in the response.") - for item in meetings["items"]: + for item in response["items"]: meeting = self.apiclient.get( "meeting", session=self.session, meeting_link=item["link"] )