Pedro Werneck added the comment: It seems the right thing to do would be to have it raise a base exception, but SMTPConnectError docstring states "Error during connection establishment.", so I chosen to use it with the errno and message from socket.error, even if it's supposed to happen only after connection is already stablished, since it's a subclass of SMTPResponseException.
As a bonus I removed a explicit raise socket.error from line 290, when an user pass a non-integer port. ---------- nosy: +werneck Added file: http://bugs.python.org/file9499/issue_2118_smtplib.patch __________________________________ Tracker <[EMAIL PROTECTED]> <http://bugs.python.org/issue2118> __________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com