diff --git a/scrapers/usa/bills.py b/scrapers/usa/bills.py index 3eeb62e96f..a3dc067fea 100644 --- a/scrapers/usa/bills.py +++ b/scrapers/usa/bills.py @@ -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"