Permalink
Browse files

MA: skip half-baked legislator pages

  • Loading branch information...
1 parent a71bef3 commit ab59fa14f27e4d49b378f26c4b2122b301a3bb8f @twneale twneale committed Jan 3, 2013
Showing with 3 additions and 0 deletions.
  1. +3 −0 openstates/ma/legislators.py
@@ -72,6 +72,9 @@ def scrape_member(self, chamber, term, member_url):
if len(district):
district = district[0].text.strip()
district = clean_district(district)
+ else:
+ self.logger.warning('No district tab found for this hot garbage. Skipping.')
+ return
party = root.xpath('//span[@class="legislatorAffiliation"]/text()')[0]

0 comments on commit ab59fa1

Please sign in to comment.