Skip to content

Commit

Permalink
MI: Skip vacant seats
Browse files Browse the repository at this point in the history
  • Loading branch information
mileswwatkins committed Sep 15, 2015
1 parent 859995f commit 4a069a0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion openstates/mi/legislators.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ def scrape_lower(self, chamber, term):
email = metainf['email'].text_content().strip()
leg_url = metainf['website'].xpath("./a")[0].attrib['href']
name = metainf['name'].text_content().strip()
if name == 'Vacant' or (party == 'N' and "District " in name):
if name == 'Vacant' or re.match(r'^District \d{1,3}$', name):
self.warning('District {} appears vacant, and will be skipped'.format(district))
continue

Expand Down

0 comments on commit 4a069a0

Please sign in to comment.