Skip to content

Commit 009a81a

Browse files
committed
error
1 parent eaee25e commit 009a81a

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

services/web/server/src/simcore_service_webserver/projects/_nodes_handlers.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@
7373
from ..users.api import get_user_id_from_gid, get_user_role
7474
from ..users.exceptions import UserDefaultWalletNotFoundError
7575
from ..utils_aiohttp import envelope_json_response
76-
from ..wallets.errors import WalletNotEnoughCreditsError
76+
from ..wallets.errors import WalletAccessForbiddenError, WalletNotEnoughCreditsError
7777
from . import nodes_utils, projects_api
7878
from ._common_models import ProjectPathParams, RequestContext
7979
from ._nodes_api import NodeScreenshot, get_node_screenshots
@@ -120,6 +120,10 @@ async def wrapper(request: web.Request) -> web.StreamResponse:
120120
raise web.HTTPConflict(reason=f"{exc}") from exc
121121
except CatalogForbiddenError as exc:
122122
raise web.HTTPForbidden(reason=f"{exc}") from exc
123+
except WalletAccessForbiddenError as err:
124+
raise web.HTTPForbidden(
125+
reason=f"Payment required, but the user lacks access to the project's linked wallet.: {exc}"
126+
) from exc
123127

124128
return wrapper
125129

0 commit comments

Comments
 (0)