def _build_contest_kwargs(self, row):
        """
        if 'County' in self.reader.fieldnames:
            jurisdiction = row['County']
        else:
            jurisdiction = row['JurisdictionName']

        The above is the same as the code below, except a try/catch is quicker
        than an if/else statement. Plus, Python is EAFP, not LBYL.

        """

        try:
            jurisdiction = row['County'].strip()
        except __HOLE__:
            name_list = self.source.split('__')[-2:]
            jurisdiction = '{0} {1}'.format(
                name_list[0],
                name_list[1].split('.')[0])

        return {
            'office': row['Race'].strip(),
            'jurisdiction': jurisdiction
        }
dataset/ETHPy150Open openelections/openelections-core/openelex/us/wa/load.py/WALoaderPost2007._build_contest_kwargs