From 75905f5e6ee80e8a6331c3c4d1e13cd8d03245f7 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Sat, 20 Nov 2010 08:55:03 -0700 Subject: [PATCH] ... --- src/calibre/utils/smtp.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/calibre/utils/smtp.py b/src/calibre/utils/smtp.py index 8af31b5d38..4b7ec3f0a3 100644 --- a/src/calibre/utils/smtp.py +++ b/src/calibre/utils/smtp.py @@ -105,7 +105,10 @@ def sendmail(msg, from_, to, localhost=None, verbose=0, timeout=30, try: s.sendmail(from_, to, msg) finally: - ret = s.quit() + try: + ret = s.quit() + except: + pass # Ignore so as to not hide original error return ret def option_parser():