Commit 8e7f7d56 authored by 's avatar

simplified code:

'handle_errors' is *always* true at this point because otherwise the error would have been re-raised in line 270.
Removed the raise statement because it was unreachable.
parent 03bd4dcb
......@@ -305,12 +305,9 @@ class Item(Base,
html_quote(sys.exc_info()[1]),
))
if handle_errors:
# If we've been asked to handle errors, just
# return the rendered exception and let the
# ZPublisher Exception Hook deal with it.
# If we've been asked to handle errors, just return the rendered
# exception and let the ZPublisher Exception Hook deal with it.
return error_type, v, tb
raise error_type, v, tb
finally:
if hasattr(self, '_v_eek'): del self._v_eek
tb = None
......
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