Commit be1a0d80 authored by Chris McDonough's avatar Chris McDonough

Remove bare except: clauses.

parent a98621be
......@@ -41,7 +41,7 @@ class Tabs(ExtensionClass.Base):
try:
options=tuple(self.manage_options)
except:
except TypeError:
options=tuple(self.manage_options())
for d in options:
......@@ -72,7 +72,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