Skip to content

Commit 1de06a5

Browse files
committed
Fix error type
1 parent 98fdf9c commit 1de06a5

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

services/api-server/src/simcore_service_api_server/api/routes/functions_routes.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525
from models_library.functions_errors import (
2626
FunctionExecuteAccessDeniedError,
2727
FunctionInputsValidationError,
28+
FunctionReadAccessDeniedError,
2829
UnsupportedFunctionClassError,
2930
)
3031
from models_library.products import ProductName
@@ -379,7 +380,7 @@ async def run_function( # noqa: PLR0913
379380
)
380381
)
381382
if not user_permissions.read:
382-
raise FunctionExecuteAccessDeniedError(
383+
raise FunctionReadAccessDeniedError(
383384
user_id=user_id,
384385
function_id=function_id,
385386
)

0 commit comments

Comments
 (0)