Make action cancel failed silently

May need to revisit this in future.
This commit is contained in:
tengqm 2015-02-02 23:20:50 +08:00
parent 6b68142266
commit 000006d24b

View File

@ -1079,8 +1079,7 @@ def action_control(context, action_id, value):
query = model_query(context, models.Action)
action = query.get(action_id)
if not action:
raise exception.NotFound(
_('Action with id "%s" not found') % action_id)
return
action.control = value
action.save(query.session)