From: Vinay Sajip Date: Mon, 3 Oct 2016 18:50:56 +0000 (+0100) Subject: Issue #28335: made minor improvement to implementation. X-Git-Tag: v3.7.0a1~2311 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=b74034351f1a54ab107a77e39f656bbb2f86dcd4;p=thirdparty%2FPython%2Fcpython.git Issue #28335: made minor improvement to implementation. --- diff --git a/Lib/logging/config.py b/Lib/logging/config.py index 65d70daf5a59..917178e5118c 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 '