Signed-off-by: Jeroen Oudshoorn <oudshoorn.jeroen@gmail.com>
This commit is contained in:
Jeroen Oudshoorn
2023-10-13 07:21:17 +02:00
parent 1c33c830d5
commit 7d27680eda

View File

@ -68,7 +68,7 @@ def refresh():
gauth = GoogleAuth(settings_file="settings.yaml") gauth = GoogleAuth(settings_file="settings.yaml")
try: try:
# Try to load saved client credentials # Try to load saved client credentials
gauth.LoadCredentialsFile("credentials.json") gauth.LoadCredentialsFile("/root/credentials.json")
except pydrive2.auth.InvalidCredentialsError: except pydrive2.auth.InvalidCredentialsError:
print(gauth.GetAuthUrl()) print(gauth.GetAuthUrl())
user_input = input("Please copy this URL into a browser, " user_input = input("Please copy this URL into a browser, "