Stop throwing an extra exception upon network error
This commit is contained in:
Rui Carmo 2021-01-03 14:26:21 +00:00 committed by GitHub
parent 19d35008b9
commit fb8594432f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -710,8 +710,7 @@ def main():
print "Disconnecting"
server.logout()
except socket.error, e:
(err, desc) = e
print "ERROR: %s %s" % (err, desc)
print "ERROR:", e
sys.exit(4)
except imaplib.IMAP4.error, e:
print "ERROR:", e