[Zope-Checkins] SVN: Zope/trunk/src/Zope2/App/startup.py Merged c101389 from 2.12 branch

Hanno Schlichting hannosch at hannosch.eu
Thu Jul 2 08:28:13 EDT 2009


Log message for revision 101390:
  Merged c101389 from 2.12 branch
  

Changed:
  U   Zope/trunk/src/Zope2/App/startup.py

-=-
Modified: Zope/trunk/src/Zope2/App/startup.py
===================================================================
--- Zope/trunk/src/Zope2/App/startup.py	2009-07-02 12:24:19 UTC (rev 101389)
+++ Zope/trunk/src/Zope2/App/startup.py	2009-07-02 12:28:13 UTC (rev 101390)
@@ -171,7 +171,8 @@
                 if t.lower() in ('unauthorized', 'redirect'):
                     raise
             else:
-                if t is SystemExit or t is Redirect or t is Unauthorized:
+                if (t is SystemExit or
+                    issubclass(t, Redirect) or issubclass(t, Unauthorized)):
                     raise
 
                 if issubclass(t, ConflictError):



More information about the Zope-Checkins mailing list