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():