Issue #28335: made minor improvement to implementation.

This commit is contained in:
Vinay Sajip 2016-10-03 19:50:56 +01:00
parent aa27582f35
commit b74034351f

View 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 '