diff --git a/openstates/ca/legislators.py b/openstates/ca/legislators.py index 2395824f30..3429066686 100644 --- a/openstates/ca/legislators.py +++ b/openstates/ca/legislators.py @@ -56,6 +56,8 @@ def scrape(self, chamber, term): continue if '[ Vacant ]' in legislator['full_name']: continue + if 'Vacant ' in legislator['full_name']: + continue fullname = legislator['full_name'] if not legislator['first_name'] and fullname.endswith('Vacant'): continue @@ -88,9 +90,6 @@ def parse_legislator(self, tr, term, chamber): 'address': parse_address, } - if 'Vacant' in tr.text_content(): - return - rubberstamp = lambda _: _ tr_xpath = tr.xpath res = collections.defaultdict(list)