Skip to content

Commit

Permalink
MA: skip half-baked legislator pages
Browse files Browse the repository at this point in the history
  • Loading branch information
twneale committed Jan 3, 2013
1 parent a71bef3 commit ab59fa1
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions openstates/ma/legislators.py
Expand Up @@ -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]

Expand Down

0 comments on commit ab59fa1

Please sign in to comment.