Skip to content

Commit c381665

Browse files
committed
@GitHK review
1 parent 65b08eb commit c381665

File tree

1 file changed

+5
-3
lines changed
  • services/director-v2/src/simcore_service_director_v2/api/routes

1 file changed

+5
-3
lines changed

services/director-v2/src/simcore_service_director_v2/api/routes/computations.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -377,10 +377,12 @@ async def create_or_update_or_start_computation( # noqa: PLR0913 # pylint: disa
377377
) as e:
378378
raise HTTPException(status_code=status.HTTP_404_NOT_FOUND, detail=f"{e}") from e
379379

380-
except ClustersKeeperNotAvailableError as e:
381-
raise HTTPException(status_code=status.HTTP_503_SERVICE_UNAVAILABLE, detail=f"{e}") from e
382-
except ConfigurationError as e:
380+
except (
381+
ClustersKeeperNotAvailableError,
382+
ConfigurationError,
383+
) as e:
383384
raise HTTPException(status_code=status.HTTP_503_SERVICE_UNAVAILABLE, detail=f"{e}") from e
385+
384386
except WalletNotEnoughCreditsError as e:
385387
raise HTTPException(status_code=status.HTTP_402_PAYMENT_REQUIRED, detail=f"{e}") from e
386388

0 commit comments

Comments
 (0)