diff --git a/openstates/ma/legislators.py b/openstates/ma/legislators.py index 8a0b589646..ccc8aad201 100644 --- a/openstates/ma/legislators.py +++ b/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]