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:
parent
7b4c47ab4e
commit
2fc5d2a814
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user