Skip to content

Commit

Permalink
Fix "file_cache is unavailable when using oauth2client >= 4.0.0"
Browse files Browse the repository at this point in the history
  • Loading branch information
keanemind committed Jul 22, 2018
1 parent 651c3d6 commit 4594687
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lostnphoned/sms.py
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,8 @@ def get_contacts(words, connection):
**credentials_dict)

people = googleapiclient.discovery.build(
API_SERVICE_NAME, API_VERSION, credentials=credentials)
API_SERVICE_NAME, API_VERSION, credentials=credentials,
cache_discovery=False)

# Save credentials back to database in case access token was refreshed.
sql.update_user(phone_number, credentials, connection)
Expand Down

0 comments on commit 4594687

Please sign in to comment.