[Zope-Checkins] SVN: Zope/branches/Zope-2_8-branch/lib/python/App/Management.py Remove bare except: clauses.

Chris McDonough chrism at plope.com
Tue Jul 5 21:59:09 EDT 2005


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.')
 



More information about the Zope-Checkins mailing list