Commit d9fb045f by Dudás Ádám

common: move auxiliary statement out of try block with catch-all

parent e2a076ca
......@@ -134,8 +134,8 @@ class OperatedMixin(object):
"""Yield Operations that match permissions of user and preconditions.
"""
for name in getattr(self, operation_registry_name, {}):
try:
op = getattr(self, name)
try:
op.check_auth(user)
op.check_precond()
except:
......
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 sign in to comment