Skip to content

Commit

Permalink
IN: events: fix API response key that changed
Browse files Browse the repository at this point in the history
  • Loading branch information
jessemortenson committed Dec 18, 2024
1 parent eb547f4 commit e55e53a
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions scrapers/in/events.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"]
)
Expand Down

0 comments on commit e55e53a

Please sign in to comment.