Maildir: OfflineImapError is missing the severity argument

Github-ref: https://github.com/OfflineIMAP/offlineimap/issues/350
Signed-off-by: Nicolas Sebrecht <nicolas.s-dev@laposte.net>
This commit is contained in:
Nicolas Sebrecht 2016-07-16 18:00:59 +02:00
parent 1a96d588d5
commit 59f5da5e9e
2 changed files with 3 additions and 2 deletions

View File

@ -462,7 +462,8 @@ class MaildirFolder(BaseFolder):
"""
if not uid in self.messagelist:
raise OfflineImapError("Cannot change unknown Maildir UID %s"% uid)
raise OfflineImapError("Cannot change unknown Maildir UID %s"% uid,
OfflineImapError.ERROR.MESSAGE)
if uid == new_uid: return
oldfilename = self.messagelist[uid]['filename']