[issue11558] Raise a more helpful exception in email.message.Message.attach after set_payload("some string")

Varun Sharma report at bugs.python.org
Sun Mar 2 20:21:40 CET 2014


Varun Sharma added the comment:

Afer getting a lot of help from david on irc, i finally improved the patch. Now it catches AttributeError and raises TypeError for non-object types in attach function.

----------
Added file: http://bugs.python.org/file34269/test_email_attach_to_string.patch

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue11558>
_______________________________________


More information about the Python-bugs-list mailing list