mirror of
https://github.com/python/cpython.git
synced 2025-12-04 08:34:25 +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,7 +720,11 @@ class Handler(Filterer):
|
||||||
"""
|
"""
|
||||||
if raiseExceptions:
|
if raiseExceptions:
|
||||||
ei = sys.exc_info()
|
ei = sys.exc_info()
|
||||||
|
try:
|
||||||
traceback.print_exception(ei[0], ei[1], ei[2], None, sys.stderr)
|
traceback.print_exception(ei[0], ei[1], ei[2], None, sys.stderr)
|
||||||
|
except IOError:
|
||||||
|
pass # see issue 5971
|
||||||
|
finally:
|
||||||
del ei
|
del ei
|
||||||
|
|
||||||
class StreamHandler(Handler):
|
class StreamHandler(Handler):
|
||||||
|
|
|
||||||
|
|
@ -285,6 +285,9 @@ Core and Builtins
|
||||||
Library
|
Library
|
||||||
-------
|
-------
|
||||||
|
|
||||||
|
- Issue #5971: StreamHandler.handleError now swallows IOErrors which occur when
|
||||||
|
trying to print a traceback.
|
||||||
|
|
||||||
- Issue #5976: Fixed Distutils test_check_environ.
|
- 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
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue