This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author r.david.murray
Recipients BreamoreBoy, christian.heimes, giampaolo.rodola, gjb1002, gregmalcolm, pitrou, r.david.murray, rodolpho, stranger4good, werneck, zanella
Date 2010-09-13.01:19:33
SpamBayes Score 8.401536e-07
Marked as misclassified No
Message-id <>
I discussed this issue with Antoine Pitrou on #python-dev, and his opinion is that SMTPSocketConnectError doesn't add enough value to be worthwhile.  So he is in favor of making this a doc fix.

However, the suggestion also came up to have SMTPException subclass from IOError instead of Exception, since every place where an SMTPException is raised IO is involved.  This change would mean that code that didn't care what kind of IO error causes the connection to fail could trap just IOError, and code that did care could trap SMTPConnectError and IOError separately.

It is possible this would have backward compatibility issues, so the base class change is probably suitable only for 3.2, but a doc change clarifying that non-SMTP errors can be raised by connect should be backported.
Date User Action Args
2010-09-13 01:19:36r.david.murraysetrecipients: + r.david.murray, gjb1002, pitrou, giampaolo.rodola, christian.heimes, stranger4good, zanella, werneck, rodolpho, BreamoreBoy, gregmalcolm
2010-09-13 01:19:36r.david.murraysetmessageid: <>
2010-09-13 01:19:34r.david.murraylinkissue2118 messages
2010-09-13 01:19:33r.david.murraycreate