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

Michael Henry report at bugs.python.org
Tue Mar 15 16:34:16 CET 2011


New submission from Michael Henry <python at drmikehenry.com>:

The attached test program, test_email_attach_to_string.py, demonstrates the
desire for email.message.Message.attach to raise a more helpful exception when
the user incorrectly invokes attach() after setting the payload to a string.

----------
components: Library (Lib)
files: test_email_attach_to_string.py
messages: 130984
nosy: michael.henry, r.david.murray
priority: normal
severity: normal
status: open
title: Raise a more helpful exception in email.message.Message.attach after set_payload("some string")
Added file: http://bugs.python.org/file21214/test_email_attach_to_string.py

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


More information about the New-bugs-announce mailing list