Skip to content

Commit

Permalink
Fixes older version of httpx which doesn't support chaining from rais…
Browse files Browse the repository at this point in the history
…e_for_status
  • Loading branch information
stumpylog committed Oct 12, 2023
1 parent f07233c commit 9ef4dd6
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/gotenberg_client/health.py
Original file line number Diff line number Diff line change
Expand Up @@ -112,5 +112,7 @@ class HealthCheckApi(BaseApi):

def health(self) -> HealthStatus:
resp = self._client.get(self._HEALTH_ENDPOINT, headers={"Accept": "application/json"})
json_data: _HealthCheckApiResponseType = resp.raise_for_status().json()
resp.raise_for_status()
json_data: _HealthCheckApiResponseType = resp.json()

return HealthStatus(json_data)

0 comments on commit 9ef4dd6

Please sign in to comment.