[issue33972] AttributeError in email.message.iter_attachments()

2021-01-11 Thread Xavier Hausherr
Xavier Hausherr added the comment: The problem still occurs with the _find_body method. The "part.is_attachment()" method can trigger an AttributeError too "AttributeError: 'str' object has no attribute 'is_attachment'" https://github.com/python/cp

[issue42892] AttributeError in email.message.get_body()

2021-01-11 Thread Xavier Hausherr
New submission from Xavier Hausherr : Following this issue: https://bugs.python.org/issue33972 Same bug apply to email.message.get_body() with attached email example and the following code: from email.policy import default import email with open

[issue42892] AttributeError in email.message.get_body()

2021-01-11 Thread Xavier Hausherr
Xavier Hausherr added the comment: Attached PR fix the issue. -- ___ Python tracker <https://bugs.python.org/issue42892> ___ ___ Python-bugs-list mailin