diff options
author | Andrei Troie <andreitroie90@gmail.com> | 2019-10-05 16:19:15 (GMT) |
---|---|---|
committer | Abhilash Raj <maxking@users.noreply.github.com> | 2019-10-05 16:19:15 (GMT) |
commit | 65dcc8a8dc41d3453fd6b987073a5f1b30c5c0fd (patch) | |
tree | 95dc8edc797c00bcc5a8020e63268fbc0009975b /Misc/NEWS.d/next/Library | |
parent | 3faf826e5879536d2272f1a51c58965a16827f81 (diff) | |
download | cpython-65dcc8a8dc41d3453fd6b987073a5f1b30c5c0fd.zip cpython-65dcc8a8dc41d3453fd6b987073a5f1b30c5c0fd.tar.gz cpython-65dcc8a8dc41d3453fd6b987073a5f1b30c5c0fd.tar.bz2 |
bpo-38332: Catch KeyError from unknown cte in encoded-word. (GH-16503)
KeyError should cause a failure in parsing the encoded word and should be caught and raised as a _InvalidEWError instead.
Diffstat (limited to 'Misc/NEWS.d/next/Library')
-rw-r--r-- | Misc/NEWS.d/next/Library/2019-10-05-02-07-52.bpo-38332.hwrPN7.rst | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Misc/NEWS.d/next/Library/2019-10-05-02-07-52.bpo-38332.hwrPN7.rst b/Misc/NEWS.d/next/Library/2019-10-05-02-07-52.bpo-38332.hwrPN7.rst new file mode 100644 index 0000000..600c702 --- /dev/null +++ b/Misc/NEWS.d/next/Library/2019-10-05-02-07-52.bpo-38332.hwrPN7.rst @@ -0,0 +1,3 @@ +Prevent :exc:`KeyError` thrown by :func:`_encoded_words.decode` when given +an encoded-word with invalid content-type encoding from propagating all the +way to :func:`email.message.get`. |