Skip to content

Commit bb6fbff

Browse files
committed
Updates to error catching in score_definitions.py
1 parent b27bb41 commit bb6fbff

File tree

1 file changed

+1
-9
lines changed

1 file changed

+1
-9
lines changed

src/sasctl/_services/score_definitions.py

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -91,18 +91,10 @@ def create_score_definition(
9191
model = cls._model_repository.get_model(model)
9292
if not model:
9393
raise HTTPError(
94-
{
95-
f"This model may not exist in a project or the model may not exist at all."
96-
}
94+
"This model may not exist in a project or the model may not exist at all."
9795
)
9896
model_id = model["id"]
9997

100-
if not model:
101-
raise HTTPError(
102-
{
103-
f"This model may not exist in a project or the model may not exist at all."
104-
}
105-
)
10698
model_project_id = model.get("projectId")
10799
model_project_version_id = model.get("projectVersionId")
108100
model_name = model.get("name")

0 commit comments

Comments
 (0)