From fb8594432f46defca49411215d7f0f0228fb4b03 Mon Sep 17 00:00:00 2001 From: Rui Carmo Date: Sun, 3 Jan 2021 14:26:21 +0000 Subject: [PATCH] Fix #19 Stop throwing an extra exception upon network error --- imapbackup.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/imapbackup.py b/imapbackup.py index 593b778..c61468b 100644 --- a/imapbackup.py +++ b/imapbackup.py @@ -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