Matthieu Pepin added the comment:
I can confirm. I'm having the exact same issue in Python 3.6.5.
--
nosy: +Matthieu Pepin
___
Python tracker
<https://bugs.python.org/is
New submission from Matthieu Pepin:
Message.is_attachment() throws the exception below:
File "/usr/lib/python3.5/email/message.py", line 956, in is_attachment
return False if c_d is None else c_d.content_disposition == 'attachment'
AttributeError: 'str
Matthieu Pepin added the comment:
Ok I think the bug is not where I thought. First, my workaround does not work.
Second, I use the following to generate my Message:
message_from_string(s, _class=EmailMessage)
Maybe the bug is in the parser
Matthieu Pepin added the comment:
Yes, I will make a small reproducer.
--
___
Python tracker
<http://bugs.python.org/issue25640>
___
___
Python-bugs-list mailin