def _check_auth(self): if not self.username or not self.passkey: raise AuthException("Your authentication credentials for " + self.name + " are missing, check your config.") return True
def _check_auth(self): if not self.passkey: raise AuthException( 'Your authentication credentials are missing, check your config.' ) return True
def _check_auth(self): if not self.username or not self.passkey: raise AuthException(('Your authentication credentials for {} are ' 'missing, check your config.').format(self.name)) return True
def _check_auth_from_data(self, parsed_json): if parsed_json is None: return self._check_auth() if 'api-error' in parsed_json: logger.log("Incorrect authentication credentials: {0}".format(parsed_json['api-error']), logger.DEBUG) raise AuthException( "Your authentication credentials for " + self.name + " are incorrect, check your config.") return True
def _check_auth(self): if self.username and self.password: return True raise AuthException('Your authentication credentials for ' + self.name + ' are missing, check your config.')