diff options
author | Irit Katriel <1055913+iritkatriel@users.noreply.github.com> | 2021-09-05 15:54:13 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-09-05 15:54:13 (GMT) |
commit | 9e31b3952f6101ef71ec029481b972169ab0e0f1 (patch) | |
tree | b325ae97e170eafbdb9b58a5cc1755446c5667b5 /Lib/traceback.py | |
parent | b01fd533fef78b088674bad73267b89bea98e904 (diff) | |
download | cpython-9e31b3952f6101ef71ec029481b972169ab0e0f1.zip cpython-9e31b3952f6101ef71ec029481b972169ab0e0f1.tar.gz cpython-9e31b3952f6101ef71ec029481b972169ab0e0f1.tar.bz2 |
bpo-41031: Match C and Python code formatting of unprintable exceptions and exceptions in the __main__ module. (GH-28139)
Diffstat (limited to 'Lib/traceback.py')
-rw-r--r-- | Lib/traceback.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/traceback.py b/Lib/traceback.py index d51c201..1b537dc 100644 --- a/Lib/traceback.py +++ b/Lib/traceback.py @@ -169,7 +169,7 @@ def _some_str(value): try: return str(value) except: - return '<unprintable %s object>' % type(value).__name__ + return '<exception str() failed>' # -- |