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.
This commit is contained in:
Rodolfo García Peñas (kix) 2020-10-31 15:29:24 +01:00
parent 26efc62ba7
commit 78aeed20a9

View File

@ -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.