This commit is contained in:
Kovid Goyal 2010-11-20 08:55:03 -07:00
parent 54f93e96b7
commit 75905f5e6e

View File

@ -105,7 +105,10 @@ def sendmail(msg, from_, to, localhost=None, verbose=0, timeout=30,
try: try:
s.sendmail(from_, to, msg) s.sendmail(from_, to, msg)
finally: finally:
ret = s.quit() try:
ret = s.quit()
except:
pass # Ignore so as to not hide original error
return ret return ret
def option_parser(): def option_parser():