Skip to content

Commit

Permalink
fix exception handling for 404 errors
Browse files Browse the repository at this point in the history
  • Loading branch information
TShapinsky committed Jun 28, 2024
1 parent 8e7fb5a commit 14686b4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/api/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

import pytest
from alfalfa_client import AlfalfaClient
from requests import HTTPError
from alfalfa_client.alfalfa_client import AlfalfaAPIException


@pytest.fixture
Expand Down Expand Up @@ -33,5 +33,5 @@ def run_id(alfalfa_client: AlfalfaClient, model_path):
try:
if alfalfa_client.status(run_id) not in ["COMPLETE", "ERROR", "STOPPING", "READY"]:
alfalfa_client.stop(run_id)
except HTTPError:
except AlfalfaAPIException:
pass

0 comments on commit 14686b4

Please sign in to comment.