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

Closes #21742: Merged fix from 3.4.

......@@ -463,6 +463,7 @@ class WatchedFileHandler(logging.FileHandler):
# we have an open file handle, clean it up
self.stream.flush()
self.stream.close()
self.stream = None # See Issue #21742: _open () might fail.
# open a new file handle and get new stat info from that fd
self.stream = self._open()
self._statstream()
......
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