summaryrefslogtreecommitdiffstats
path: root/Misc/NEWS.d/next/Library
diff options
context:
space:
mode:
authorClaudiu Popa <pcmanticore@gmail.com>2019-12-05 03:14:26 (GMT)
committerMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>2019-12-05 03:14:26 (GMT)
commitbb815499af855b1759c02535f8d7a9d0358e74e8 (patch)
tree1ee1d5c2c5377e0a8ed71a9153af4c76b6824d6d /Misc/NEWS.d/next/Library
parent8b787964e0a647caa0558b7c29ae501470d727d9 (diff)
downloadcpython-bb815499af855b1759c02535f8d7a9d0358e74e8.zip
cpython-bb815499af855b1759c02535f8d7a9d0358e74e8.tar.gz
cpython-bb815499af855b1759c02535f8d7a9d0358e74e8.tar.bz2
bpo-38698: Prevent UnboundLocalError to pop up in parse_message_id (GH-17277)
parse_message_id() was improperly using a token defined inside an exception handler, which was raising `UnboundLocalError` on parsing an invalid value. https://bugs.python.org/issue38698
Diffstat (limited to 'Misc/NEWS.d/next/Library')
-rw-r--r--Misc/NEWS.d/next/Library/2019-12-02-10-35-19.bpo-38698.WZnAPQ.rst5
1 files changed, 5 insertions, 0 deletions
diff --git a/Misc/NEWS.d/next/Library/2019-12-02-10-35-19.bpo-38698.WZnAPQ.rst b/Misc/NEWS.d/next/Library/2019-12-02-10-35-19.bpo-38698.WZnAPQ.rst
new file mode 100644
index 0000000..e606acb
--- /dev/null
+++ b/Misc/NEWS.d/next/Library/2019-12-02-10-35-19.bpo-38698.WZnAPQ.rst
@@ -0,0 +1,5 @@
+Prevent UnboundLocalError to pop up in parse_message_id
+
+parse_message_id() was improperly using a token defined inside an exception
+handler, which was raising `UnboundLocalError` on parsing an invalid value.
+Patch by Claudiu Popa.