diff --git a/examples/deployment/deployed_models.py b/examples/deployment/deployed_models.py index ec3cd6f4..cfdd2365 100644 --- a/examples/deployment/deployed_models.py +++ b/examples/deployment/deployed_models.py @@ -29,8 +29,7 @@ def heading(text: str) -> str: if len(deployment_list.results) < 1: print("No deployed models found.") - exit(1) - -print(heading("Retrieve information about first deployment")) -deployment_info = client.deployment.retrieve(id=deployment_list.results[0].id) -pprint(deployment_info.model_dump()) +else: + print(heading("Retrieve information about first deployment")) + deployment_info = client.deployment.retrieve(id=deployment_list.results[0].id) + pprint(deployment_info.model_dump())