summaryrefslogtreecommitdiffstats
path: root/Misc/NEWS.d/next
diff options
context:
space:
mode:
authorAndrei Troie <andreitroie90@gmail.com>2019-10-05 16:19:15 (GMT)
committerAbhilash Raj <maxking@users.noreply.github.com>2019-10-05 16:19:15 (GMT)
commit65dcc8a8dc41d3453fd6b987073a5f1b30c5c0fd (patch)
tree95dc8edc797c00bcc5a8020e63268fbc0009975b /Misc/NEWS.d/next
parent3faf826e5879536d2272f1a51c58965a16827f81 (diff)
downloadcpython-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')
-rw-r--r--Misc/NEWS.d/next/Library/2019-10-05-02-07-52.bpo-38332.hwrPN7.rst3
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`.