diff --git a/openstates/ut/bills.py b/openstates/ut/bills.py index 32e02e5776..e85b23d06b 100644 --- a/openstates/ut/bills.py +++ b/openstates/ut/bills.py @@ -34,14 +34,13 @@ def scrape(self, session, chambers): session_search_text = session if "s" not in session.lower() and "h" not in session.lower(): session_search_text += "GS" - + sessions = sessions.xpath( '//p/a[contains(@href, "{}")]'.format(session_search_text)) - + session_url = '' - + for elem in sessions: - if re.sub(r'\s+', " ", elem.xpath('text()')[0]) == \ self.metadata['session_details'][session]['_scraped_name']: session_url = elem.xpath('@href')[0]