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:
parent
1a96d588d5
commit
59f5da5e9e
@ -162,7 +162,7 @@ class LocalStatusSQLiteFolder(BaseFolder):
|
|||||||
if hasattr(self, 'connection'):
|
if hasattr(self, 'connection'):
|
||||||
self.connection.close() #close old connections first
|
self.connection.close() #close old connections first
|
||||||
self.connection = sqlite.connect(self.filename,
|
self.connection = sqlite.connect(self.filename,
|
||||||
check_same_thread = False)
|
check_same_thread=False)
|
||||||
|
|
||||||
# Upgrade from database version 1 to version 2
|
# Upgrade from database version 1 to version 2
|
||||||
# This change adds labels and mtime columns, to be used by Gmail IMAP and Maildir folders.
|
# This change adds labels and mtime columns, to be used by Gmail IMAP and Maildir folders.
|
||||||
|
@ -462,7 +462,8 @@ class MaildirFolder(BaseFolder):
|
|||||||
"""
|
"""
|
||||||
|
|
||||||
if not uid in self.messagelist:
|
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
|
if uid == new_uid: return
|
||||||
|
|
||||||
oldfilename = self.messagelist[uid]['filename']
|
oldfilename = self.messagelist[uid]['filename']
|
||||||
|
Loading…
Reference in New Issue
Block a user