Skip to content

Commit

Permalink
Merge pull request #5144 from openstates/in-events-fix-api-key
Browse files Browse the repository at this point in the history
IN: events: fix API response key that changed
  • Loading branch information
jessemortenson authored Dec 18, 2024
2 parents eb547f4 + e55e53a commit d66aee3
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 d66aee3

Please sign in to comment.