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,7 +702,9 @@ class Handler(Filterer):
#get the module data lock, as we're updating a shared structure.
_acquireLock()
try: #unlikely to raise an exception, but you never know...
if self in _handlers:
del _handlers[self]
if self in _handlerList:
_handlerList.remove(self)
finally:
_releaseLock()
......
......@@ -33,6 +33,8 @@ Core and Builtins
Library
-------
- Issue #8581: logging: removed errors raised when closing handlers twice.
- Issue #4687: Fix accuracy of garbage collection runtimes displayed with
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