summaryrefslogtreecommitdiffstats
path: root/Misc
diff options
context:
space:
mode:
authorSimon-Martin Schröder <martin.schroeder@nerdluecht.de>2022-07-11 09:14:15 (GMT)
committerGitHub <noreply@github.com>2022-07-11 09:14:15 (GMT)
commit46fc584b00f2ccee5b77d8fc525881def8670a02 (patch)
treed8b899911c740c27a46423686b444870cbfc1e90 /Misc
parentda717519ecd17bf6c7ed334c12ff861f63b0f14f (diff)
downloadcpython-46fc584b00f2ccee5b77d8fc525881def8670a02.zip
cpython-46fc584b00f2ccee5b77d8fc525881def8670a02.tar.gz
cpython-46fc584b00f2ccee5b77d8fc525881def8670a02.tar.bz2
gh-87822: Make traceback module robust to exceptions from repr() of local values (GH-94691)
Diffstat (limited to 'Misc')
-rw-r--r--Misc/ACKS1
-rw-r--r--Misc/NEWS.d/next/Library/2022-07-08-17-49-12.gh-issue-87822.F9dzkf.rst1
2 files changed, 2 insertions, 0 deletions
diff --git a/Misc/ACKS b/Misc/ACKS
index b634041..32475f8 100644
--- a/Misc/ACKS
+++ b/Misc/ACKS
@@ -1590,6 +1590,7 @@ Ed Schouten
Scott Schram
Robin Schreiber
Chad J. Schroeder
+Simon-Martin Schroeder
Christian Schubert
Sam Schulenburg
Andreas Schwab
diff --git a/Misc/NEWS.d/next/Library/2022-07-08-17-49-12.gh-issue-87822.F9dzkf.rst b/Misc/NEWS.d/next/Library/2022-07-08-17-49-12.gh-issue-87822.F9dzkf.rst
new file mode 100644
index 0000000..7b27f5d
--- /dev/null
+++ b/Misc/NEWS.d/next/Library/2022-07-08-17-49-12.gh-issue-87822.F9dzkf.rst
@@ -0,0 +1 @@
+When called with ``capture_locals=True``, the :mod:`traceback` module functions swallow exceptions raised from calls to ``repr()`` on local variables of frames. This is in order to prioritize the original exception over rendering errors. An indication of the failure is printed in place of the missing value. (Patch by Simon-Martin Schroeder).