From b5f0840529e083a475749afb23fba4fca541a10c Mon Sep 17 00:00:00 2001 From: Hiroaki Ogasawara <13391129+xhiroga@users.noreply.github.com> Date: Sun, 23 Apr 2023 07:00:18 +0900 Subject: [PATCH] fix: github api client should raise http error explicitly (#1285) Co-authored-by: xhiroga <xhiroga@users.noreply.github.com> --- gpt_index/readers/github_readers/github_api_client.py | 1 + 1 file changed, 1 insertion(+) diff --git a/gpt_index/readers/github_readers/github_api_client.py b/gpt_index/readers/github_readers/github_api_client.py index cde89efb04..611ae126cf 100644 --- a/gpt_index/readers/github_readers/github_api_client.py +++ b/gpt_index/readers/github_readers/github_api_client.py @@ -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 -- GitLab