XOAUTH2: raise error when oauth_request_url is missing for IMAP type

Signed-off-by: Nicolas Sebrecht <nicolas.s-dev@laposte.net>
This commit is contained in:
Nicolas Sebrecht 2016-04-25 17:38:42 +02:00
parent 7b4c47ab4e
commit 2fc5d2a814

View File

@ -273,8 +273,8 @@ class IMAPRepository(BaseRepository):
self._oauth2_request_url = oauth2_request_url
return self._oauth2_request_url
#raise OfflineImapError("No remote oauth2_request_url for repository "
#"'%s' specified."% self, OfflineImapError.ERROR.REPO)
raise OfflineImapError("No remote oauth2_request_url for repository "
"'%s' specified."% self, OfflineImapError.ERROR.REPO)
def getoauth2_refresh_token(self):
return self.getconf('oauth2_refresh_token', None)