From e31bf4962bd7949cfdb7e80f674c5c459d7b6fb0 Mon Sep 17 00:00:00 2001 From: showerst Date: Thu, 14 Dec 2023 08:53:26 -0500 Subject: [PATCH] MO: fix for missing href (#4753) --- scrapers/mo/bills.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scrapers/mo/bills.py b/scrapers/mo/bills.py index c48c7133b0..7f1ad002ee 100644 --- a/scrapers/mo/bills.py +++ b/scrapers/mo/bills.py @@ -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)