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 fb3c628 + 6e669fb commit b51aa7bCopy full SHA for b51aa7b
1 file changed
Lib/logging/__init__.py
@@ -708,7 +708,8 @@ def _removeHandlerRef(wr):
708
# This function can be called during module teardown, when globals are
709
# set to None. If _acquireLock is None, assume this is the case and do
710
# nothing.
711
- if _acquireLock is not None:
+ if (_acquireLock is not None and _handlerList is not None and
712
+ _releaseLock is not None):
713
_acquireLock()
714
try:
715
if wr in _handlerList:
0 commit comments