Skip to content

Commit b740343

Browse files
committed
Issue python#28335: made minor improvement to implementation.
1 parent aa27582 commit b740343

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Lib/logging/config.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -559,7 +559,7 @@ def configure(self):
559559
handler.name = name
560560
handlers[name] = handler
561561
except Exception as e:
562-
if 'Unable to set target handler' in str(e):
562+
if 'target not configured yet' in str(e.__cause__):
563563
deferred.append(name)
564564
else:
565565
raise ValueError('Unable to configure handler '

0 commit comments

Comments
 (0)