Skip to content

Commit

Permalink
ME: Bills: Skip blank lines in actions (#4735)
Browse files Browse the repository at this point in the history
* ME: Bills: Skip blank lines in multiline actions
  • Loading branch information
showerst authored Nov 29, 2023
1 parent 3020a33 commit 724b881
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions scrapers/me/bills.py
Original file line number Diff line number Diff line change
Expand Up @@ -463,6 +463,7 @@ def scrape_actions(self, bill, url):
actions = []
for action in action.splitlines():
action = re.sub(r"\s+", " ", action)
action = action.strip()
if not action or "Unfinished Business" in action:
continue

Expand Down

0 comments on commit 724b881

Please sign in to comment.