Commit e3164365 authored by Hanno Schlichting's avatar Hanno Schlichting

Merged c101854 from 2.12 branch

parent 3c4a6f2e
......@@ -167,12 +167,7 @@ class ZPublisherExceptionHook:
def __call__(self, published, REQUEST, t, v, traceback):
try:
if isinstance(t, StringType):
if t.lower() in ('unauthorized', 'redirect'):
raise
else:
if (t is SystemExit or
issubclass(t, Redirect) or issubclass(t, Unauthorized)):
if t is SystemExit or issubclass(t, Redirect):
raise
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