Skip to content

Commit 1882dd0

Browse files
author
Mohamed Zeidan
committed
error handling for all hyp commands
1 parent 9937f2e commit 1882dd0

File tree

5 files changed

+551
-105
lines changed

5 files changed

+551
-105
lines changed

src/sagemaker/hyperpod/cli/commands/inference.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@
3333
registry=JS_REG,
3434
)
3535
@_hyperpod_telemetry_emitter(Feature.HYPERPOD_CLI, "create_js_endpoint_cli")
36+
@handle_cli_exceptions()
3637
def js_create(name, namespace, version, js_endpoint):
3738
"""
3839
Create a jumpstart model endpoint.
@@ -55,6 +56,7 @@ def js_create(name, namespace, version, js_endpoint):
5556
registry=C_REG,
5657
)
5758
@_hyperpod_telemetry_emitter(Feature.HYPERPOD_CLI, "create_custom_endpoint_cli")
59+
@handle_cli_exceptions()
5860
def custom_create(name, namespace, version, custom_endpoint):
5961
"""
6062
Create a custom model endpoint.

0 commit comments

Comments
 (0)