diff --git a/flask_oauthlib/client.py b/flask_oauthlib/client.py index 5a34d74e..1a6eefcc 100644 --- a/flask_oauthlib/client.py +++ b/flask_oauthlib/client.py @@ -536,7 +536,7 @@ def generate_request_token(self, callback=None): type='token_generation_failed' ) data = parse_response(resp, content) - if data is None: + if not data: raise OAuthException( 'Invalid token response from %s' % self.name, type='token_generation_failed'