Commit 1b7b44c5 authored by Hanno Schlichting's avatar Hanno Schlichting

Merged c101389 from 2.12 branch

parent 45d5c8ce
...@@ -171,7 +171,8 @@ class ZPublisherExceptionHook: ...@@ -171,7 +171,8 @@ class ZPublisherExceptionHook:
if t.lower() in ('unauthorized', 'redirect'): if t.lower() in ('unauthorized', 'redirect'):
raise raise
else: else:
if t is SystemExit or t is Redirect or t is Unauthorized: if (t is SystemExit or
issubclass(t, Redirect) or issubclass(t, Unauthorized)):
raise raise
if issubclass(t, ConflictError): if issubclass(t, ConflictError):
......
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