diff options
author | Vinay Sajip <vinay_sajip@yahoo.co.uk> | 2016-10-03 18:50:56 (GMT) |
---|---|---|
committer | Vinay Sajip <vinay_sajip@yahoo.co.uk> | 2016-10-03 18:50:56 (GMT) |
commit | b74034351f1a54ab107a77e39f656bbb2f86dcd4 (patch) | |
tree | 84b29c5f39c8d3d329d494116a7259c5fe9e6321 /Lib/logging | |
parent | aa27582f3595f6de3f3407021f230ba55a12fd50 (diff) | |
download | cpython-b74034351f1a54ab107a77e39f656bbb2f86dcd4.zip cpython-b74034351f1a54ab107a77e39f656bbb2f86dcd4.tar.gz cpython-b74034351f1a54ab107a77e39f656bbb2f86dcd4.tar.bz2 |
Issue #28335: made minor improvement to implementation.
Diffstat (limited to 'Lib/logging')
-rw-r--r-- | Lib/logging/config.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/logging/config.py b/Lib/logging/config.py index 65d70da..917178e 100644 --- a/Lib/logging/config.py +++ b/Lib/logging/config.py @@ -559,7 +559,7 @@ class DictConfigurator(BaseConfigurator): handler.name = name handlers[name] = handler except Exception as e: - if 'Unable to set target handler' in str(e): + if 'target not configured yet' in str(e.__cause__): deferred.append(name) else: raise ValueError('Unable to configure handler ' |