diff options
author | Vinay Sajip <vinay_sajip@yahoo.co.uk> | 2016-10-03 19:50:56 +0100 |
---|---|---|
committer | Vinay Sajip <vinay_sajip@yahoo.co.uk> | 2016-10-03 19:50:56 +0100 |
commit | b74034351f1a54ab107a77e39f656bbb2f86dcd4 (patch) | |
tree | 84b29c5f39c8d3d329d494116a7259c5fe9e6321 | |
parent | aa27582f3595f6de3f3407021f230ba55a12fd50 (diff) | |
download | cpython-git-b74034351f1a54ab107a77e39f656bbb2f86dcd4.tar.gz |
Issue #28335: made minor improvement to implementation.
-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 65d70daf5a..917178e511 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 ' |