This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author serhiy.storchaka
Recipients andersk, barry, glaubitz, mdengler, r.david.murray, serhiy.storchaka
Date 2022-03-27.07:00:23
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1648364423.82.0.704331165712.issue43323@roundup.psfhosted.org>
In-reply-to
Content
Sorry, I was puzzled by the exception type and missed details in a long traceback (I have issues with reading large texts). Thank you for your detailed report.

The simple fix is to add UnicodeEncodeError to "except LookupError". But there may be other places where we can get a similar error. They should be fixed too.

Alternatively we can do something when we get an invalid charset from the parsed data. I am not the email package expert, so I do not know what would be better in that context.
History
Date User Action Args
2022-03-27 07:00:23serhiy.storchakasetrecipients: + serhiy.storchaka, barry, r.david.murray, andersk, mdengler, glaubitz
2022-03-27 07:00:23serhiy.storchakasetmessageid: <1648364423.82.0.704331165712.issue43323@roundup.psfhosted.org>
2022-03-27 07:00:23serhiy.storchakalinkissue43323 messages
2022-03-27 07:00:23serhiy.storchakacreate