commit | b74034351f1a54ab107a77e39f656bbb2f86dcd4 | [log] [tgz] |
---|---|---|
author | Vinay Sajip <vinay_sajip@yahoo.co.uk> | Mon Oct 03 19:50:56 2016 +0100 |
committer | Vinay Sajip <vinay_sajip@yahoo.co.uk> | Mon Oct 03 19:50:56 2016 +0100 |
tree | 84b29c5f39c8d3d329d494116a7259c5fe9e6321 | |
parent | aa27582f3595f6de3f3407021f230ba55a12fd50 [diff] |
Issue #28335: made minor improvement to implementation.
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 @@ 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 '