except imapobj.abort() -> except imapobj.abort
When checking for the IMAP4.abort() exception, we need of course to perform: except imapobj.abort: and not except imapobj.abort(): Thanks to Johannes Stezenbach <js@sig21.net> for pointing to the glitch. Signed-off-by: Sebastian Spaeth <Sebastian@SSpaeth.de>
This commit is contained in:
@ -549,7 +549,7 @@ class IdleThread(object):
|
||||
try:
|
||||
# End IDLE mode with noop, imapobj can point to a dropped conn.
|
||||
imapobj.noop()
|
||||
except imapobj.abort():
|
||||
except imapobj.abort:
|
||||
self.ui.warn('Attempting NOOP on dropped connection %s' % \
|
||||
imapobj.identifier)
|
||||
self.parent.releaseconnection(imapobj, True)
|
||||
|
Reference in New Issue
Block a user