コード例 #1
0
    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
コード例 #2
0
ファイル: shazbat.py プロジェクト: cjthornton/SickChill
    def _check_auth(self):
        if not self.passkey:
            raise AuthException(
                'Your authentication credentials are missing, check your config.'
            )

        return True
コード例 #3
0
ファイル: norbits.py プロジェクト: youdroid/SickChill
    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
コード例 #4
0
ファイル: btn.py プロジェクト: springah/SickChill
    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
コード例 #5
0
ファイル: tvchaosuk.py プロジェクト: springah/SickChill
    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.')