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

Issue #11444: Merge fix from 3.2.

...@@ -1793,6 +1793,7 @@ def shutdown(handlerList=_handlerList): ...@@ -1793,6 +1793,7 @@ def shutdown(handlerList=_handlerList):
h = wr() h = wr()
if h: if h:
try: try:
h.acquire()
h.flush() h.flush()
h.close() h.close()
except (IOError, ValueError): except (IOError, ValueError):
...@@ -1801,6 +1802,8 @@ def shutdown(handlerList=_handlerList): ...@@ -1801,6 +1802,8 @@ def shutdown(handlerList=_handlerList):
# references to them are still around at # references to them are still around at
# application exit. # application exit.
pass pass
finally:
h.release()
except: except:
if raiseExceptions: if raiseExceptions:
raise raise
......
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