Skip to content

Commit

Permalink
Merge pull request #1398 from burnash/fix/oauth-re-authentication
Browse files Browse the repository at this point in the history
check oauth creds type using `isinstance`
  • Loading branch information
alifeee committed Feb 1, 2024
2 parents bed3293 + 0e42594 commit 0c8d18f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gspread/auth.py
Expand Up @@ -198,7 +198,7 @@ def oauth(
authorized_user_filename = Path(authorized_user_filename)
creds = load_credentials(filename=authorized_user_filename)

if not type(creds) is Credentials:
if not isinstance(creds, Credentials):
with open(credentials_filename) as json_file:
client_config = json.load(json_file)
creds = flow(client_config=client_config, scopes=scopes)
Expand Down

0 comments on commit 0c8d18f

Please sign in to comment.