Commit 2804e2ff authored by Jeremy Hylton's avatar Jeremy Hylton

Extend zpublisher_exception_hook() to treat all subclasses of

ConflictError as a ConflictError.  Replace "is" with "issubclass".
parent 2c7c22dd
......@@ -108,7 +108,7 @@ def zpublisher_exception_hook(
lower(t) in ('unauthorized', 'redirect'))
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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment