Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

MA: skip half-baked legislator pages

  • Loading branch information...
commit ab59fa14f27e4d49b378f26c4b2122b301a3bb8f 1 parent a71bef3
@twneale twneale authored
Showing with 3 additions and 0 deletions.
  1. +3 −0  openstates/ma/legislators.py
View
3  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]
Please sign in to comment.
Something went wrong with that request. Please try again.