]> granicus.if.org Git - python/commit
bpo-38332: Catch KeyError from unknown cte in encoded-word. (GH-16503)
authorAndrei Troie <andreitroie90@gmail.com>
Sat, 5 Oct 2019 16:19:15 +0000 (17:19 +0100)
committerAbhilash Raj <maxking@users.noreply.github.com>
Sat, 5 Oct 2019 16:19:15 +0000 (09:19 -0700)
commit65dcc8a8dc41d3453fd6b987073a5f1b30c5c0fd
tree95dc8edc797c00bcc5a8020e63268fbc0009975b
parent3faf826e5879536d2272f1a51c58965a16827f81
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.
Lib/email/_header_value_parser.py
Lib/test/test_email/test__encoded_words.py
Lib/test/test_email/test__header_value_parser.py
Misc/NEWS.d/next/Library/2019-10-05-02-07-52.bpo-38332.hwrPN7.rst [new file with mode: 0644]