Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 21ceada + 0220048 commit f8e9ba0Copy full SHA for f8e9ba0
1 file changed
Lib/logging/handlers.py
@@ -463,6 +463,7 @@ def emit(self, record):
463
# we have an open file handle, clean it up
464
self.stream.flush()
465
self.stream.close()
466
+ self.stream = None # See Issue #21742: _open () might fail.
467
# open a new file handle and get new stat info from that fd
468
self.stream = self._open()
469
self._statstream()
0 commit comments