From 78aeed20a91455fb23b2e65fe115d7295a279e43 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rodolfo=20Garc=C3=ADa=20Pe=C3=B1as=20=28kix=29?= Date: Sat, 31 Oct 2020 15:29:24 +0100 Subject: [PATCH] imapserver call to OfflineImapError with right arguments Call to OfflineImapError has the arguments: - message - severity - error code The None argument ir wrong here, we can remove it and then we have three arguments not four. --- offlineimap/imapserver.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/offlineimap/imapserver.py b/offlineimap/imapserver.py index b40e814..e2916a4 100644 --- a/offlineimap/imapserver.py +++ b/offlineimap/imapserver.py @@ -332,7 +332,8 @@ class IMAPServer(): except imapobj.error as e: raise OfflineImapError("Failed to start " "TLS connection: %s" % str(e), - OfflineImapError.ERROR.REPO, None, exc_info()[2]) + OfflineImapError.ERROR.REPO, + exc_info()[2]) # All __authn_* procedures are helpers that do authentication. # They are class methods that take one parameter, IMAP object.