Message126187
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 |
|
Date |
User |
Action |
Args |
2011-01-13 17:22:26 | brandon-rhodes | set | recipients:
+ brandon-rhodes |
2011-01-13 17:22:25 | brandon-rhodes | set | messageid: <1294939345.9.0.334725926474.issue10901@psf.upfronthosting.co.za> |
2011-01-13 17:22:24 | brandon-rhodes | link | issue10901 messages |
2011-01-13 17:22:23 | brandon-rhodes | create | |
|