Author brandon-rhodes
Recipients brandon-rhodes
Date 2011-01-13.17:22:23
SpamBayes Score 7.33122e-07
Marked as misclassified No
Message-id <1294939345.9.0.334725926474.issue10901@psf.upfronthosting.co.za>
In-reply-to
Content
If you try doing "msg.as_string()" to a MIMEMultipart message that has not been given a boundary, then it dies with this exception:

Traceback (most recent call last):
  File "mime_gen_alt.py", line 40, in <module>
    print(msg.as_string())
  File "/home/brandon/python3.2b2/lib/python3.2/email/message.py", line 164, in as_string
    g.flatten(self, unixfrom=unixfrom)
  File "/home/brandon/python3.2b2/lib/python3.2/email/generator.py", line 88, in flatten
    self._write(msg)
  File "/home/brandon/python3.2b2/lib/python3.2/email/generator.py", line 134, in _write
    self._dispatch(msg)
  File "/home/brandon/python3.2b2/lib/python3.2/email/generator.py", line 160, in _dispatch
    meth(msg)
  File "/home/brandon/python3.2b2/lib/python3.2/email/generator.py", line 234, in _handle_multipart
    self.write('--' + boundary + self._NL)
TypeError: Can't convert 'NoneType' object to str implicitly
History
Date User Action Args
2011-01-13 17:22:26brandon-rhodessetrecipients: + brandon-rhodes
2011-01-13 17:22:25brandon-rhodessetmessageid: <1294939345.9.0.334725926474.issue10901@psf.upfronthosting.co.za>
2011-01-13 17:22:24brandon-rhodeslinkissue10901 messages
2011-01-13 17:22:23brandon-rhodescreate