def to_python(self, value): try: return from_client_participant_id(value) except BadRequest as ex: raise ValidationError(ex.description)