Skip to content

Commit f121685

Browse files
fix: la handle variable action table column count (#5716)
1 parent 2a05267 commit f121685

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

scrapers/la/bills.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,7 @@ def scrape_vote(self, bill, name, url):
202202
else:
203203
type = []
204204

205-
(fd, temp_path) = tempfile.mkstemp()
205+
fd, temp_path = tempfile.mkstemp()
206206
self.urlretrieve(url, temp_path)
207207

208208
html = self.pdf_to_lxml(temp_path)
@@ -347,7 +347,7 @@ def sbp(x):
347347
pass
348348

349349
for action in these_actions:
350-
date, chamber, page, text, _ = [x.text for x in action.xpath(".//td")]
350+
date, chamber, page, text, *_ = [x.text for x in action.xpath(".//td")]
351351
# Session is April -> June. Prefiles look like they're in
352352
# January at earliest.
353353
date += "/{}".format(self.start_year)

0 commit comments

Comments
 (0)