From 6b9f37e31705712fd57186b5adb95595b39fab82 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rodolfo=20Garc=C3=ADa=20Pe=C3=B1as=20=28kix=29?= Date: Sun, 1 Nov 2020 10:04:18 +0100 Subject: [PATCH] Gmail.py use hardcoded url variable 1/2 This patch sets the url variable to the hardcoded value. Then call the self.setoauth2_request_url(url) function. --- offlineimap/repository/Gmail.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/offlineimap/repository/Gmail.py b/offlineimap/repository/Gmail.py index d0b9435..6509701 100644 --- a/offlineimap/repository/Gmail.py +++ b/offlineimap/repository/Gmail.py @@ -58,7 +58,8 @@ class GmailRepository(IMAPRepository): url = super().getoauth2_request_url() if url is None: # Nothing was configured, cache and return hardcoded one. - self.setoauth2_request_url("https://accounts.google.com/o/oauth2/token") + url = "https://accounts.google.com/o/oauth2/token" + self.setoauth2_request_url(url) else: self.setoauth2_request_url(url) return self.oauth2_request_url