do use the XOAUTH2 url if configured

fix regression introduced by af640208e1.

Signed-off-by: Nicolas Sebrecht <nicolas.s-dev@laposte.net>
This commit is contained in:
Nicolas Sebrecht 2015-10-12 07:51:05 +02:00
parent af640208e1
commit 9bb27de375
1 changed files with 2 additions and 0 deletions

View File

@ -61,6 +61,8 @@ class GmailRepository(IMAPRepository):
if url is None:
# Nothing was configured, cache and return hardcoded one.
self._oauth2_request_url = GmailRepository.OAUTH2_URL
else:
self._oauth2_request_url = url
return self._oauth2_request_url
def getport(self):