On Oct 5, 2008, at 4:51 AM, Adam Groszer wrote: > connection.sendmail(fromaddr, toaddrs, message) > try: > connection.quit() > - except: > + except socket.sslerror: > + #something weird happened while quiting > pass
This is better because it catches a _specific_ exception. However, are we _certain_ that the socket is closed after this? If not, I think we should close it explicitly instead of passing on it. Thoughts, comments, anybody? _______________________________________________ Zope-Dev maillist - [email protected] http://mail.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope )
