From 2fc5d2a814bc212412ed7750702c1d28b6165ebd Mon Sep 17 00:00:00 2001 From: Nicolas Sebrecht Date: Mon, 25 Apr 2016 17:38:42 +0200 Subject: [PATCH] XOAUTH2: raise error when oauth_request_url is missing for IMAP type Signed-off-by: Nicolas Sebrecht --- offlineimap/repository/IMAP.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/offlineimap/repository/IMAP.py b/offlineimap/repository/IMAP.py index c2e58e0..e32fc29 100644 --- a/offlineimap/repository/IMAP.py +++ b/offlineimap/repository/IMAP.py @@ -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)