Fix error handling (#1447)

This commit is contained in:
Ross Scroggs
2021-10-29 10:04:59 -07:00
committed by GitHub
parent 2e195d5aa1
commit 839768a2a5

View File

@@ -359,7 +359,7 @@ def handle_oauth_token_error(e, soft_errors):
returns to the caller.
"""
token_error = str(e).replace('.', '')
if token_error in errors.OAUTH2_TOKEN_ERRORS or e.startswith(
if token_error in errors.OAUTH2_TOKEN_ERRORS or token_error.startswith(
'Invalid response'):
if soft_errors:
return