NotFound
NotFound
Parameters
Examples
try:
model = client.get_model(“wrong-model-id”)
except NotFound as e:
print(f”Model not found: {e.message}”)
# Create the model or check the correct IDtry:
project = client.get_project(“my-project”)
print(“Project exists”)
except NotFound:
print(“Project doesn’t exist, creating it…”)
project = client.create_project(name=”my-project”)code : int = 404
reason : str = 'NotFound'
Last updated
Was this helpful?