diff options
author | Simon-Martin Schröder <martin.schroeder@nerdluecht.de> | 2022-07-11 09:14:15 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-07-11 09:14:15 (GMT) |
commit | 46fc584b00f2ccee5b77d8fc525881def8670a02 (patch) | |
tree | d8b899911c740c27a46423686b444870cbfc1e90 /Misc | |
parent | da717519ecd17bf6c7ed334c12ff861f63b0f14f (diff) | |
download | cpython-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/ACKS | 1 | ||||
-rw-r--r-- | Misc/NEWS.d/next/Library/2022-07-08-17-49-12.gh-issue-87822.F9dzkf.rst | 1 |
2 files changed, 2 insertions, 0 deletions
@@ -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). |