[issue21641] smtplib leaves open sockets around if SMTPResponseException is raised in __init__

Claudiu.Popa report at bugs.python.org
Mon Jun 2 16:57:54 CEST 2014


Claudiu.Popa added the comment:

An alternative to this approach would be to catch the error in __init__ and close the socket there.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue21641>
_______________________________________


More information about the Python-bugs-list mailing list