why does popen2 silently ignore IOError?

Andy Gimblett gimbo at ftech.net
Thu Feb 21 05:31:28 EST 2002


On Wed, Feb 20, 2002 at 04:53:40PM -0800, Graham Guttocks wrote:

> I thought what I wanted was simple.  I'm sending mail by opening a
> pipe to /usr/sbin/sendmail -- if that fails for whatever reason (e.g,
> sendmail program is missing) I want an exception raised with some
> indication of the problem, instead of the current silent failure.

Have you looked at using smtplib to send mail, rather than calling
sendmail?  It's very nice.

-Andy

-- 
Andy Gimblett - Programmer - Frontier Internet Services Limited
Tel: 029 20 820 044 Fax: 029 20 820 035 http://www.frontier.net.uk/
Statements made are at all times subject to Frontier's Terms and
Conditions of Business, which are available upon request.




More information about the Python-list mailing list