Skip to content

Commit

Permalink
Skip errors adding bills in NJ
Browse files Browse the repository at this point in the history
  • Loading branch information
showerst committed Dec 12, 2016
1 parent 9da498e commit 4bbb2c1
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion openstates/nj/bills.py
Original file line number Diff line number Diff line change
Expand Up @@ -249,7 +249,10 @@ def scrape_bills(self, session, year_abr):
mimetype = 'text/html'
elif htm_url.endswith('wpd'):
mimetype = 'application/vnd.wordperfect'
bill.add_version(doc_name, htm_url, mimetype=mimetype)
try:
bill.add_version(doc_name, htm_url, mimetype=mimetype)
except ValueError:
pass
else:
bill.add_document(doc_name, htm_url)

Expand Down

0 comments on commit 4bbb2c1

Please sign in to comment.