[Checkins] SVN: Zope/trunk/src/OFS/SimpleItem.py simplified code:

Yvo Schubbe y.2010 at wcm-solutions.de
Tue Apr 13 10:54:03 EDT 2010


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



More information about the checkins mailing list