From 326129fdebaa037c57efc9b260bf2b3916dad7b5 Mon Sep 17 00:00:00 2001 From: lzzy12 Date: Sat, 4 Jan 2020 07:42:55 +0530 Subject: [PATCH] Make Oauth Scope a list as it should be Signed-off-by: lzzy12 --- bot/helper/mirror_utils/upload_utils/gdriveTools.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bot/helper/mirror_utils/upload_utils/gdriveTools.py b/bot/helper/mirror_utils/upload_utils/gdriveTools.py index 43b9f73..059a4f7 100644 --- a/bot/helper/mirror_utils/upload_utils/gdriveTools.py +++ b/bot/helper/mirror_utils/upload_utils/gdriveTools.py @@ -19,7 +19,7 @@ class GoogleDriveHelper: def __init__(self, name=None, listener=None): self.__G_DRIVE_TOKEN_FILE = "token.pickle" # Check https://developers.google.com/drive/scopes for all available scopes - self.__OAUTH_SCOPE = "https://www.googleapis.com/auth/drive" + self.__OAUTH_SCOPE = ["https://www.googleapis.com/auth/drive"] # Redirect URI for installed apps, can be left as is self.__REDIRECT_URI = "urn:ietf:wg:oauth:2.0:oob" self.__G_DRIVE_DIR_MIME_TYPE = "application/vnd.google-apps.folder"