diff --git a/services/capability/capability/views/casa_matrix.py b/services/capability/capability/views/casa_matrix.py index f0590b2c4c7f9a203384bf7241d312920111c8ee..91b3ad4c74731f8749fa6fa80066f3ecf9b96720 100644 --- a/services/capability/capability/views/casa_matrix.py +++ b/services/capability/capability/views/casa_matrix.py @@ -136,7 +136,7 @@ def add_casa_version(request: Request) -> Response: if added: return Response(status_int=http.HTTPStatus.OK, json_body=added) else: - return HTTPNotFound(detail=f"Matrix version not added") + raise HTTPNotFound(detail=f"Matrix version not added") @view_config(route_name="update_casa_version", renderer="json") @@ -166,7 +166,7 @@ def update_casa_version(request: Request) -> Response: if updated: return Response(status_int=http.HTTPStatus.OK, json_body=updated) else: - return HTTPNotFound(detail=f"Matrix version not updated") + raise HTTPNotFound(detail=f"Matrix version not updated") @view_config(route_name="delete_casa_version", renderer="json")