Skip to content
Snippets Groups Projects
Unverified Commit b5f08405 authored by Hiroaki Ogasawara's avatar Hiroaki Ogasawara Committed by GitHub
Browse files

fix: github api client should raise http error explicitly (#1285)

parent c7c40260
No related branches found
No related tags found
No related merge requests found
......@@ -258,6 +258,7 @@ class GithubClient:
response = await _client.request(
method, url=self._endpoints[endpoint].format(**kwargs)
)
response.raise_for_status()
except httpx.HTTPError as excp:
print(f"HTTP Exception for {excp.request.url} - {excp}")
raise excp
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment