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.
This commit is contained in:
Rodolfo García Peñas (kix) 2020-11-01 10:04:18 +01:00
parent b175f7a698
commit 6b9f37e317

View File

@ -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