From 4cc17b0894f25c47ffa168b9c3c544a9248c21cf Mon Sep 17 00:00:00 2001 From: Jeroen Oudshoorn Date: Fri, 13 Oct 2023 09:34:11 +0200 Subject: [PATCH] v2.4.7 Signed-off-by: Jeroen Oudshoorn --- pwnagotchi/google/cmd.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pwnagotchi/google/cmd.py b/pwnagotchi/google/cmd.py index a5c7f012..442b3e52 100644 --- a/pwnagotchi/google/cmd.py +++ b/pwnagotchi/google/cmd.py @@ -76,6 +76,7 @@ def refresh(): try: # Refresh the token gauth.Refresh() + print("Succesfully refresh access token ..") except pydrive2.auth.RefreshError: print(gauth.GetAuthUrl()) user_input = input("Please copy this URL into a browser, " @@ -96,5 +97,5 @@ def refresh(): gauth.Auth(user_input) gauth.SaveCredentialsFile("/root/credentials.json") gauth.Authorize() - print("Succesfully refresh access token ..") + print("No refresh required ..") return 0