[Zope3-checkins] CVS: Zope3/src/zope/configuration - config.py:1.11
Jim Fulton
jim at zope.com
Thu Oct 16 06:15:48 EDT 2003
Update of /cvs-repository/Zope3/src/zope/configuration
In directory cvs.zope.org:/tmp/cvs-serv13416/src/zope/configuration
Modified Files:
config.py
Log Message:
When reraising exceptions, we should generally be carreful to
retain the original traceback so as not to completely hide where a
problem occured.
=== Zope3/src/zope/configuration/config.py 1.10 => 1.11 ===
--- Zope3/src/zope/configuration/config.py:1.10 Sun Sep 21 13:34:10 2003
+++ Zope3/src/zope/configuration/config.py Thu Oct 16 06:15:48 2003
@@ -1192,7 +1192,8 @@
try:
args[str(name)] = field.fromUnicode(s)
except zope.schema.ValidationError, v:
- raise ConfigurationError("Invalid value for", n, str(v))
+ raise ConfigurationError, (
+ "Invalid value for", n, str(v)), sys.exc_info()[2]
elif field.required:
# if the default is valid, we can use that:
default = field.default
More information about the Zope3-Checkins
mailing list