Skip to content

Commit

Permalink
AR: fix for blank primary sponsor (#5254)
Browse files Browse the repository at this point in the history
  • Loading branch information
showerst authored Jan 27, 2025
1 parent 5dbd9e8 commit 949330c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions scrapers/ar/bills.py
Original file line number Diff line number Diff line change
Expand Up @@ -251,6 +251,9 @@ def scrape_bill_page(self, bill):
)
for sponsor_path in primary_sponsors_path:
primary_sponsors = sponsor_path.text_content().strip()
if primary_sponsors == "":
continue

primary_sponsors_link = sponsor_path.attrib["href"]
chamber = self.scrape_chamber(primary_sponsors_link)

Expand Down

0 comments on commit 949330c

Please sign in to comment.