[Python-checkins] cpython: Issue #28335: made minor improvement to implementation.
vinay.sajip
python-checkins at python.org
Mon Oct 3 14:51:02 EDT 2016
https://hg.python.org/cpython/rev/8c005be54305
changeset: 104269:8c005be54305
user: Vinay Sajip <vinay_sajip at yahoo.co.uk>
date: Mon Oct 03 19:50:56 2016 +0100
summary:
Issue #28335: made minor improvement to implementation.
files:
Lib/logging/config.py | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/Lib/logging/config.py b/Lib/logging/config.py
--- 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 '
--
Repository URL: https://hg.python.org/cpython
More information about the Python-checkins
mailing list