diff --git a/gpt_index/readers/github_readers/github_api_client.py b/gpt_index/readers/github_readers/github_api_client.py index cde89efb045b4304cc4982ff8aa795ac8c522a23..611ae126cfdffb1d31fb31063e1816325b3cb811 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