mirror of
https://github.com/python/cpython.git
synced 2025-07-30 06:34:15 +00:00
Issue #5971: StreamHandler.handleError now swallows IOErrors which occur when trying to print a traceback.
This commit is contained in:
parent
812d77152e
commit
f9b01fe692
2 changed files with 13 additions and 6 deletions
|
@ -720,8 +720,12 @@ class Handler(Filterer):
|
|||
"""
|
||||
if raiseExceptions:
|
||||
ei = sys.exc_info()
|
||||
traceback.print_exception(ei[0], ei[1], ei[2], None, sys.stderr)
|
||||
del ei
|
||||
try:
|
||||
traceback.print_exception(ei[0], ei[1], ei[2], None, sys.stderr)
|
||||
except IOError:
|
||||
pass # see issue 5971
|
||||
finally:
|
||||
del ei
|
||||
|
||||
class StreamHandler(Handler):
|
||||
"""
|
||||
|
|
11
Misc/NEWS
11
Misc/NEWS
|
@ -28,7 +28,7 @@ Core and Builtins
|
|||
- Issue #4426: The UTF-7 decoder was too strict and didn't accept some legal
|
||||
sequences. Patch by Nick Barnes and Victor Stinner.
|
||||
|
||||
- Issue #1588: Add complex.__format__. For example,
|
||||
- Issue #1588: Add complex.__format__. For example,
|
||||
format(complex(1, 2./3), '.5') now produces a sensible result.
|
||||
|
||||
- Issue #5864: Fix empty format code formatting for floats so that it
|
||||
|
@ -285,9 +285,12 @@ Core and Builtins
|
|||
Library
|
||||
-------
|
||||
|
||||
- Issue #5971: StreamHandler.handleError now swallows IOErrors which occur when
|
||||
trying to print a traceback.
|
||||
|
||||
- Issue #5976: Fixed Distutils test_check_environ.
|
||||
|
||||
- Issue #5900: Ensure RUNPATH is added to extension modules with RPATH if GNU
|
||||
- Issue #5900: Ensure RUNPATH is added to extension modules with RPATH if GNU
|
||||
ld is used. Original patch by Floris Bruynooghe.
|
||||
|
||||
- Issue #5941: Distutils build_clib command was not working anymore because
|
||||
|
@ -323,7 +326,7 @@ Library
|
|||
|
||||
- Issue #2245: aifc now skips chunk types it doesn't recognize, per spec.
|
||||
|
||||
- Issue #5874: distutils.tests.test_config_cmd is not locale-sensitive
|
||||
- Issue #5874: distutils.tests.test_config_cmd is not locale-sensitive
|
||||
anymore.
|
||||
|
||||
- Issue #4305: ctypes should now build again on mipsel-linux-gnu
|
||||
|
@ -899,7 +902,7 @@ Build
|
|||
linker, rather than always exit successfully. Patch by Floris Bruynooghe.
|
||||
|
||||
- Issue #4587: Add configure option --with-dbmliborder=db1:db2:... to specify
|
||||
the order that backends for the dbm extension are checked.
|
||||
the order that backends for the dbm extension are checked.
|
||||
|
||||
- Link the shared python library with $(MODLIBS).
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue