Permalink
Browse files

status_code for exceptions

  • Loading branch information...
1 parent 32c800c commit a84ca7f849dba75f891b4a9ad537754224430dae @jamesturk jamesturk committed May 1, 2012
Showing with 1 addition and 2 deletions.
  1. +1 −2 openstates/md/bills.py
@@ -322,7 +322,6 @@ def scrape(self, chamber, session):
try:
self.scrape_bill(chamber, session, bill_type, i)
except HTTPError as he:
- print type(he.response)
- if he.response.code != 404:
+ if he.response.status_code != 404:
raise he
break

0 comments on commit a84ca7f

Please sign in to comment.