Commit 2ea5b2ec authored by Chris McDonough's avatar Chris McDonough

Remove bare except: clauses.

parent c487d240
......@@ -43,7 +43,7 @@ class Tabs(ExtensionClass.Base):
try:
options=tuple(self.manage_options)
except:
except TypeError:
options=tuple(self.manage_options())
for d in options:
......@@ -74,7 +74,7 @@ class Tabs(ExtensionClass.Base):
m=options[0]['action']
if m=='manage_workspace':
raise TypeError
except:
except (IndexError, KeyError):
raise Unauthorized, (
'You are not authorized to view this object.')
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment