From 8882679357927e2008d22af98695372feee7eead Mon Sep 17 00:00:00 2001 From: Corentin Flr <10946971+cogk@users.noreply.github.com> Date: Mon, 11 Sep 2023 14:34:22 +0200 Subject: [PATCH] fix: Ensure Google Calendar scopes is a List (#22333) --- frappe/integrations/doctype/google_calendar/google_calendar.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frappe/integrations/doctype/google_calendar/google_calendar.py b/frappe/integrations/doctype/google_calendar/google_calendar.py index 695ae7db15..7125e243a9 100644 --- a/frappe/integrations/doctype/google_calendar/google_calendar.py +++ b/frappe/integrations/doctype/google_calendar/google_calendar.py @@ -214,7 +214,7 @@ def get_google_calendar_object(g_calendar): "token_uri": GoogleOAuth.OAUTH_URL, "client_id": google_settings.client_id, "client_secret": google_settings.get_password(fieldname="client_secret", raise_exception=False), - "scopes": "https://www.googleapis.com/auth/calendar/v3", + "scopes": ["https://www.googleapis.com/auth/calendar/v3"], } credentials = google.oauth2.credentials.Credentials(**credentials_dict)