[Zope-Checkins] SVN: Zope/trunk/lib/python/App/Management.py Remove
	bare except: clauses.
    Chris McDonough 
    chrism at plope.com
       
    Tue Jul  5 21:58:48 EDT 2005
    
    
  
Log message for revision 31018:
  Remove bare except: clauses.
  
Changed:
  U   Zope/trunk/lib/python/App/Management.py
-=-
Modified: Zope/trunk/lib/python/App/Management.py
===================================================================
--- Zope/trunk/lib/python/App/Management.py	2005-07-05 20:24:04 UTC (rev 31017)
+++ Zope/trunk/lib/python/App/Management.py	2005-07-06 01:58:47 UTC (rev 31018)
@@ -43,7 +43,7 @@
 
         try:
             options=tuple(self.manage_options)
-        except:
+        except TypeError:
             options=tuple(self.manage_options())
 
         for d in options:
@@ -74,7 +74,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.')
 
    
    
More information about the Zope-Checkins
mailing list