Skip to content

Commit

Permalink
MO: fix for missing href (#4753)
Browse files Browse the repository at this point in the history
  • Loading branch information
showerst authored Dec 14, 2023
1 parent e97194d commit e31bf49
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scrapers/mo/bills.py
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ def _parse_senate_billpage(self, bill_url, year):

# get the actions
action_url = bill_page.xpath('//a[@id="hlAllActions"]')
if len(action_url) > 0:
if len(action_url) > 0 and action_url[0].xpath("@href"):
action_url = action_url[0].attrib["href"]
self._parse_senate_actions(bill, action_url)

Expand Down

0 comments on commit e31bf49

Please sign in to comment.