raise webob.exc.HTTPNotFound(explanation=e.format_message())
except exception.FlavorAccessExists as err:
raise webob.exc.HTTPConflict(explanation=err.format_message())
- except exception.AdminRequired as e:
- raise webob.exc.HTTPForbidden(explanation=e.format_message())
return _marshall_flavor_access(flavor)
@extensions.expected_errors((400, 403, 404))
except (exception.FlavorAccessNotFound,
exception.FlavorNotFound) as e:
raise webob.exc.HTTPNotFound(explanation=e.format_message())
- except exception.AdminRequired as e:
- raise webob.exc.HTTPForbidden(explanation=e.format_message())
return _marshall_flavor_access(flavor)