Skip to content

Commit 8446a4e

Browse files
committed
fixing another linter issue
1 parent 91e5839 commit 8446a4e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/groundlight/edge/api.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import time
2+
from http import HTTPStatus
23

34
import requests
45

@@ -29,7 +30,7 @@ def _request(self, method: str, path: str, **kwargs) -> requests.Response:
2930
)
3031
response.raise_for_status()
3132
except requests.exceptions.HTTPError as e:
32-
if e.response is not None and e.response.status_code == 404:
33+
if e.response is not None and e.response.status_code == HTTPStatus.NOT_FOUND:
3334
raise EdgeNotAvailableError(
3435
f"Edge method not available at {url}. {_EDGE_METHOD_UNAVAILABLE_HINT}"
3536
) from e

0 commit comments

Comments
 (0)