Skip to content

Commit

Permalink
ME: Bills: Skip blank lines in multiline actions
Browse files Browse the repository at this point in the history
  • Loading branch information
showerst committed Nov 29, 2023
1 parent b225255 commit 20174b8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion scrapers/me/bills.py
Original file line number Diff line number Diff line change
Expand Up @@ -463,7 +463,8 @@ def scrape_actions(self, bill, url):
actions = []
for action in action.splitlines():
action = re.sub(r"\s+", " ", action)
if not action or action == "" or "Unfinished Business" in action:
action = action.strip()
if not action or "Unfinished Business" in action:
continue

actions.append(action)
Expand Down

0 comments on commit 20174b8

Please sign in to comment.