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, ...@@ -305,12 +305,9 @@ class Item(Base,
html_quote(sys.exc_info()[1]), html_quote(sys.exc_info()[1]),
)) ))
if handle_errors: # If we've been asked to handle errors, just return the rendered
# If we've been asked to handle errors, just # exception and let the ZPublisher Exception Hook deal with it.
# return the rendered exception and let the return error_type, v, tb
# ZPublisher Exception Hook deal with it.
return error_type, v, tb
raise error_type, v, tb
finally: finally:
if hasattr(self, '_v_eek'): del self._v_eek if hasattr(self, '_v_eek'): del self._v_eek
tb = None 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