From ac67e296cc88f30ffc9ba56a02445fe93b739500 Mon Sep 17 00:00:00 2001 From: Dalena Date: Fri, 1 Nov 2024 16:18:33 -0500 Subject: [PATCH] fix: restore UsageError --- silverback/_cli.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/silverback/_cli.py b/silverback/_cli.py index 82736d51..0de61d01 100644 --- a/silverback/_cli.py +++ b/silverback/_cli.py @@ -31,7 +31,6 @@ ) from silverback.cluster.client import ClusterClient, PlatformClient from silverback.cluster.types import ClusterTier, LogLevel, ResourceStatus -from silverback.exceptions import ClientError from silverback.runner import PollingRunner, WebsocketRunner from silverback.worker import run_worker @@ -243,7 +242,7 @@ def new_workspace( ) if not workspace_name: - raise ClientError("Must provide a name or a slug/name combo") + raise click.UsageError("Must provide a name or a slug/name combo") platform.create_workspace( workspace_name=workspace_name, @@ -361,7 +360,7 @@ def new_cluster( ) if not cluster_name: - raise ClientError("Must provide a name or a slug/name combo") + raise click.UsageError("Must provide a name or a slug/name combo") cluster = workspace_client.create_cluster( cluster_name=cluster_name,