[issue5423] Exception raised when attempting to call set_charset on an email.mime.multipart once sub-parts have been attached

John Edmonds report at bugs.python.org
Sat Jan 23 20:03:38 CET 2010


John Edmonds <pocketcookies2 at gmail.com> added the comment:

It looks like set_charset's documentation says that it assumes you are calling it on a message with a mimetype of text/*.  This case calls it on a message of type multipart/mixed.  Nonetheless, I am attaching a patch that catches this earlier and prints a more relevant and consistent error message.

----------
keywords: +patch
nosy: +pocketcookies
Added file: http://bugs.python.org/file15979/issue5423.patch

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


More information about the Python-bugs-list mailing list