Commit e9734c6d authored by Shinya Maeda's avatar Shinya Maeda Committed by Shinya Maeda

Resolve static analysis

parent 8026f47d
...@@ -49,7 +49,7 @@ module AccessMatchersForController ...@@ -49,7 +49,7 @@ module AccessMatchersForController
user = emulate_user(role, @membership) user = emulate_user(role, @membership)
begin begin
action.call(user) action.call(user)
rescue Exception => e rescue
# Ignore internal exceptions which will be caused in the controller # Ignore internal exceptions which will be caused in the controller
# In such cases, response.status will be 200. # In such cases, response.status will be 200.
end end
...@@ -70,7 +70,7 @@ module AccessMatchersForController ...@@ -70,7 +70,7 @@ module AccessMatchersForController
user = emulate_user(role, @membership) user = emulate_user(role, @membership)
begin begin
action.call(user) action.call(user)
rescue Exception => e rescue
# Ignore internal exceptions which will be caused in the controller # Ignore internal exceptions which will be caused in the controller
# In such cases, response.status will be 200. # In such cases, response.status will be 200.
end end
......
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