Fw: sendmail error
Alexander Kapps
alex.kapps at web.de
Tue Aug 31 13:53:59 EDT 2010
More information about the Python-list mailing list
Tue Aug 31 13:53:59 EDT 2010
- Previous message (by thread): Fw: sendmail error
- Next message (by thread): sendmail error
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Chris Withers wrote: > Alexander Kapps wrote: >> Instead you want something like: >> >> except smtplib.SMTPException, msg >> print "eroare: " + msg > > Err, that's still concatenating a string and an exception object. OUCH! What a stupid error. Thanks for correction. :-) > What *would* work is: > > except smtplib.SMTPException, msg > print "eroare: " + str(msg) > > ...not that it's particularly good coding style, what with hiding the > traceback and all... Full Ack. > cheers, > > Chris >
- Previous message (by thread): Fw: sendmail error
- Next message (by thread): sendmail error
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Python-list mailing list