File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed
services/web/server/src/simcore_service_webserver/projects Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change 7373from ..users .api import get_user_id_from_gid , get_user_role
7474from ..users .exceptions import UserDefaultWalletNotFoundError
7575from ..utils_aiohttp import envelope_json_response
76- from ..wallets .errors import WalletNotEnoughCreditsError
76+ from ..wallets .errors import WalletAccessForbiddenError , WalletNotEnoughCreditsError
7777from . import nodes_utils , projects_api
7878from ._common_models import ProjectPathParams , RequestContext
7979from ._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
You can’t perform that action at this time.
0 commit comments