Kaydet (Commit) c7cbb9b5 authored tarafından Vinay Sajip's avatar Vinay Sajip

Issue #8581: logging: removed errors raised when closing handlers twice.

üst 350c394c
...@@ -702,8 +702,10 @@ class Handler(Filterer): ...@@ -702,8 +702,10 @@ class Handler(Filterer):
#get the module data lock, as we're updating a shared structure. #get the module data lock, as we're updating a shared structure.
_acquireLock() _acquireLock()
try: #unlikely to raise an exception, but you never know... try: #unlikely to raise an exception, but you never know...
del _handlers[self] if self in _handlers:
_handlerList.remove(self) del _handlers[self]
if self in _handlerList:
_handlerList.remove(self)
finally: finally:
_releaseLock() _releaseLock()
......
...@@ -33,6 +33,8 @@ Core and Builtins ...@@ -33,6 +33,8 @@ Core and Builtins
Library Library
------- -------
- Issue #8581: logging: removed errors raised when closing handlers twice.
- Issue #4687: Fix accuracy of garbage collection runtimes displayed with - Issue #4687: Fix accuracy of garbage collection runtimes displayed with
gc.DEBUG_STATS. gc.DEBUG_STATS.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment