]> granicus.if.org Git - python/commitdiff
Issue #28335: made minor improvement to implementation.
authorVinay Sajip <vinay_sajip@yahoo.co.uk>
Mon, 3 Oct 2016 18:50:56 +0000 (19:50 +0100)
committerVinay Sajip <vinay_sajip@yahoo.co.uk>
Mon, 3 Oct 2016 18:50:56 +0000 (19:50 +0100)
Lib/logging/config.py

index 65d70daf5a59c1c515dbb435683bbd73429a08ca..917178e5118c36e06bbb80edc86808aa24a27e2d 100644 (file)
@@ -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 '