Skip to content

Commit f46e717

Browse files
authored
Merge pull request #476 from simvue-io/hotfix/correct-wrong-http-code
Correct wrong HTTP status code check 400 -> 404
2 parents 86e99fd + e128114 commit f46e717

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

simvue/client.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -613,7 +613,7 @@ def _retrieve_artifact_from_server(
613613
)
614614

615615
json_response = self._get_json_from_response(
616-
expected_status=[200, 400],
616+
expected_status=[200, 404],
617617
scenario=f"Retrieval of artifact '{name}' for run '{run_id}'",
618618
response=response,
619619
)
@@ -652,7 +652,7 @@ def abort_run(self, run_id: str, reason: str) -> typing.Union[dict, list]:
652652
)
653653

654654
json_response = self._get_json_from_response(
655-
expected_status=[200, 400],
655+
expected_status=[200, 404],
656656
scenario=f"Abort of run '{run_id}'",
657657
response=response,
658658
)

0 commit comments

Comments
 (0)