Log message for revision 31019:
  Remove bare except: clauses.
  
  

Changed:
  U   Zope/branches/Zope-2_8-branch/lib/python/App/Management.py

-=-
Modified: Zope/branches/Zope-2_8-branch/lib/python/App/Management.py
===================================================================
--- Zope/branches/Zope-2_8-branch/lib/python/App/Management.py  2005-07-06 
01:58:47 UTC (rev 31018)
+++ Zope/branches/Zope-2_8-branch/lib/python/App/Management.py  2005-07-06 
01:59:09 UTC (rev 31019)
@@ -41,7 +41,7 @@
 
         try:
             options=tuple(self.manage_options)
-        except:
+        except TypeError:
             options=tuple(self.manage_options())
 
         for d in options:
@@ -72,7 +72,7 @@
             m=options[0]['action']
             if m=='manage_workspace':
                     raise TypeError
-        except:
+        except (IndexError, KeyError):
             raise Unauthorized, (
                 'You are not authorized to view this object.')
 

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

Reply via email to