[issue2118] smtplib.SMTP() raises socket.error rather than SMTPConnectError

2008-02-15 Thread stranger4good
stranger4good added the comment: Not in so many words, but yes it does I cite: exception SMTPException Base exception class for all exceptions raised by this module ... exception SMTPConnectError Error occurred during establishment of a connection with the server. ... Note the word &quo

[issue2118] smtplib.SMTP() raises socket.error rather than SMTPConnectError

2008-02-14 Thread stranger4good
New submission from stranger4good: smtplib.SMTP() raises socket.error rather than SMTPConnectError just try this on a non-responding address >>> srv=smtplib.SMTP('192.168.13.22') Traceback (most recent call last): File "", line 1, in File "c:\pyth