def get_candidate_fields(self, raw_result):
        year = raw_result.end_date.year

        fields = self._get_fields(raw_result, candidate_fields)

        try:
            name = HumanName(raw_result.full_name)
        except __HOLE__:
            name = HumanName("{} {}".format(raw_result.given_name, raw_result.family_name))

        fields['given_name'] = name.first
        fields['family_name'] = name.last
        if not fields['full_name']:
            fields['full_name'] = "{} {}".format(name.first, name.last)
        try:
            fields['additional_name'] = name.middle
            fields['suffix'] = name.suffix
        except Exception,e:
            logger.error(e)
        return fields
dataset/ETHPy150Open openelections/openelections-core/openelex/us/wa/transform/__init__.py/BaseTransform.get_candidate_fields