Fix for gdrive not working #1081

This commit is contained in:
Ozzieisaacs
2019-11-26 10:46:06 +01:00
parent 78f9ee86b1
commit 8af178c19c
3 changed files with 7 additions and 2 deletions

View File

@ -584,5 +584,7 @@ def get_error_text(client_secrets=None):
filedata = json.load(settings)
if 'web' not in filedata:
return 'client_secrets.json is not configured for web application'
if 'redirect_uris' not in filedata['web']:
return 'Callback url (redirect url) is missing in client_secrets.json'
if client_secrets:
client_secrets.update(filedata['web'])