Log message for revision 110801:
  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.

Changed:
  U   Zope/trunk/src/OFS/SimpleItem.py

-=-
Modified: Zope/trunk/src/OFS/SimpleItem.py
===================================================================
--- Zope/trunk/src/OFS/SimpleItem.py    2010-04-13 14:47:33 UTC (rev 110800)
+++ Zope/trunk/src/OFS/SimpleItem.py    2010-04-13 14:54:03 UTC (rev 110801)
@@ -305,12 +305,9 @@
                     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.
-                return error_type, v, tb
-            raise error_type, v, tb
+            # 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
         finally:
             if hasattr(self, '_v_eek'): del self._v_eek
             tb = None

_______________________________________________
Zope-Checkins maillist  -  Zope-Checkins@zope.org
https://mail.zope.org/mailman/listinfo/zope-checkins

Reply via email to