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.') _______________________________________________ Zope-Checkins maillist - Zope-Checkins@zope.org http://mail.zope.org/mailman/listinfo/zope-checkins