Skip to content

Commit

Permalink
Fix "file_cache is unavailable when using oauth2client" error message…
Browse files Browse the repository at this point in the history
  • Loading branch information
MingoDynasty committed Dec 28, 2020
1 parent e818127 commit 6f5431d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sheets.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ def create_service():
with open('token.pickle', 'wb') as token:
pickle.dump(creds, token)

service = build('sheets', 'v4', credentials=creds)
service = build('sheets', 'v4', cache_discovery=False, credentials=creds)
return service.spreadsheets()
except HttpError as error:
handle_error('sheets_api', val=error._get_reason())

0 comments on commit 6f5431d

Please sign in to comment.