Skip to content

Commit

Permalink
USA: Bills: Fix for actions missing source system (#4700)
Browse files Browse the repository at this point in the history
  • Loading branch information
showerst authored Sep 21, 2023
1 parent a8fb738 commit c3e3514
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions scrapers/usa/bills.py
Original file line number Diff line number Diff line change
Expand Up @@ -235,6 +235,11 @@ def scrape_actions(self, bill, xml):
action_text = self.get_xpath(row, "text")
if action_text not in actions:
source = self.get_xpath(row, "sourceSystem/name")

if source is None:
self.warning(f"Skipping action with no source: {action_text}")
continue

action_type = self.get_xpath(row, "type")

actor = "lower"
Expand Down

0 comments on commit c3e3514

Please sign in to comment.