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:
		| @@ -162,7 +162,7 @@ class LocalStatusSQLiteFolder(BaseFolder): | ||||
|         if hasattr(self, 'connection'): | ||||
|             self.connection.close() #close old connections first | ||||
|         self.connection = sqlite.connect(self.filename, | ||||
|                                          check_same_thread = False) | ||||
|                                          check_same_thread=False) | ||||
|  | ||||
|         # Upgrade from database version 1 to version 2 | ||||
|         # 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: | ||||
|             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'] | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Nicolas Sebrecht
					Nicolas Sebrecht