[issue11558] Raise a more helpful exception in email.message.Message.attach after set_payload("some string")
Varun Sharma
report at bugs.python.org
Sat Mar 1 13:18:46 CET 2014
Varun Sharma added the comment:
I have made a patch which raises TypeError whenever a string type payload is attached to message using email.Message.attach() method.I have also added a unit test for the same. Need review.
----------
keywords: +patch
nosy: +varun
Added file: http://bugs.python.org/file34258/string_payload_to_attach.patch
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue11558>
_______________________________________
More information about the Python-bugs-list
mailing list