Fixed a minor bug discovered if server is unreachable when debugging
This commit is contained in:
parent
1e7ef9e7e6
commit
6a45eef3b5
@ -735,10 +735,8 @@ class IMAPFolder(BaseFolder):
|
|||||||
raise OfflineImapError(
|
raise OfflineImapError(
|
||||||
"Saving msg (%s) in folder '%s', "
|
"Saving msg (%s) in folder '%s', "
|
||||||
"repository '%s' failed (abort). "
|
"repository '%s' failed (abort). "
|
||||||
"Server responded: %s\n"
|
"Server responded: %s\n" %
|
||||||
"Message content was: %s" %
|
(msg_id, self, self.getrepository(), str(e)),
|
||||||
(msg_id, self, self.getrepository(),
|
|
||||||
str(e), dbg_output),
|
|
||||||
OfflineImapError.ERROR.MESSAGE,
|
OfflineImapError.ERROR.MESSAGE,
|
||||||
exc_info()[2])
|
exc_info()[2])
|
||||||
|
|
||||||
@ -752,10 +750,8 @@ class IMAPFolder(BaseFolder):
|
|||||||
imapobj = None
|
imapobj = None
|
||||||
raise OfflineImapError(
|
raise OfflineImapError(
|
||||||
"Saving msg (%s) folder '%s', repo '%s'"
|
"Saving msg (%s) folder '%s', repo '%s'"
|
||||||
"failed (error). Server responded: %s\n"
|
"failed (error). Server responded: %s\n" %
|
||||||
"Message content was: %s" %
|
(msg_id, self, self.getrepository(), str(e)),
|
||||||
(msg_id, self, self.getrepository(),
|
|
||||||
str(e), dbg_output),
|
|
||||||
OfflineImapError.ERROR.MESSAGE,
|
OfflineImapError.ERROR.MESSAGE,
|
||||||
exc_info()[2])
|
exc_info()[2])
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user