[Zodb-checkins] CVS: Zope3/src/zope/interface - interface.py:1.18
Gary Poster
gary at zope.com
Fri Jan 23 11:59:33 EST 2004
Update of /cvs-repository/Zope3/src/zope/interface
In directory cvs.zope.org:/tmp/cvs-serv24750
Modified Files:
interface.py
Log Message:
Fix bug, and add test for the case.
=== Zope3/src/zope/interface/interface.py 1.17 => 1.18 ===
--- Zope3/src/zope/interface/interface.py:1.17 Tue Jan 20 16:17:41 2004
+++ Zope3/src/zope/interface/interface.py Fri Jan 23 11:59:01 2004
@@ -519,7 +519,12 @@
else:
errors.append(e)
for base in self.__bases__:
- base.validateInvariants(obj, errors)
+ try:
+ base.validateInvariants(obj, errors)
+ except Invalid:
+ if errors is None:
+ raise
+ pass
if errors:
raise Invalid(errors)
More information about the Zodb-checkins
mailing list