[New-bugs-announce] [issue25640] Message.is_attachment() throws exception
Matthieu Pepin
report at bugs.python.org
Mon Nov 16 16:48:00 EST 2015
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' object has no attribute 'content_disposition'
It seems to work fine for me with:
return c_d == 'attachment'
----------
components: email
messages: 254757
nosy: Matthieu Pepin, barry, r.david.murray
priority: normal
severity: normal
status: open
title: Message.is_attachment() throws exception
type: crash
versions: Python 3.5
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue25640>
_______________________________________
More information about the New-bugs-announce
mailing list