def _check_identity(self):
    client_package = ClientOverview.objects.filter(client_code=self.client_code)
    if (not client_package):
        logger.error(('Response from the function of `judge._check_identity`, error_msg=%s, rel_err_msg=%s' % (UserIdentityError.message, 'No data in ClientOverview')), exc_info=True)
        raise UserIdentityError
    client_package = client_package[0]
    self.client_id = client_package.client_id
    self.client_secret = client_package.client_secret
    self.des_key = client_package.des_key
def _check_identity(self):
    client_package = ClientOverview.objects.filter(client_code=self.client_code)
    if (not client_package):
        logger.error(('Response from the function of `judge._check_identity`, error_msg=%s, rel_err_msg=%s' % (UserIdentityError.message, 'No data in ClientOverview')), exc_info=True)
        raise UserIdentityError
    client_package = client_package[0]
    self.client_id = client_package.client_id
    self.client_secret = client_package.client_secret
    self.des_key = client_package.des_key