[Zope-Checkins] CVS: Zope/lib/python/Zope - __init__.py:1.27
Jeremy Hylton
jeremy@zope.com
Thu, 17 Jan 2002 22:41:29 -0500
Update of /cvs-repository/Zope/lib/python/Zope
In directory cvs.zope.org:/tmp/cvs-serv16141
Modified Files:
__init__.py
Log Message:
Extend zpublisher_exception_hook() to treat all subclasses of
ConflictError as a ConflictError. Replace "is" with "issubclass".
=== Zope/lib/python/Zope/__init__.py 1.26 => 1.27 ===
or t is SystemExit):
raise
- if t is ConflictError:
+ if issubclass(t, ConflictError):
# now what
# First, we need to close the current connection. We'll
# do this by releasing the hold on it. There should be