From e51d4251d4148c8ef4e369da2584bf3aa9a3fbdb Mon Sep 17 00:00:00 2001 From: Tim Showers Date: Thu, 21 Sep 2023 09:44:22 -0400 Subject: [PATCH] USA: Bills: Fix for actions missing source system --- scrapers/usa/bills.py | 5 +++++ 1 file changed, 5 insertions(+) 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"