From b74034351f1a54ab107a77e39f656bbb2f86dcd4 Mon Sep 17 00:00:00 2001 From: Vinay Sajip Date: Mon, 3 Oct 2016 19:50:56 +0100 Subject: Issue #28335: made minor improvement to implementation. --- Lib/logging/config.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 ' -- cgit v1.2.1