refactor: Expand better-error-logging patterns across the codebase (#15241)

Co-authored-by: openhands <openhands@all-hands.dev>
This commit is contained in:
Tim O'Farrell
2026-07-20 03:37:01 -06:00
committed by GitHub
co-authored by openhands
parent 93c0871951
commit 7db8bd4d92
101 changed files with 840 additions and 629 deletions
@@ -81,9 +81,9 @@ class GitLabMixinBase(BaseGitService, HTTPClient):
return response.text, headers
except httpx.HTTPStatusError as e:
raise self.handle_http_status_error(e)
raise self.handle_http_status_error(e) from e
except httpx.HTTPError as e:
raise self.handle_http_error(e)
raise self.handle_http_error(e) from e
async def execute_graphql_query(
self, query: str, variables: dict[str, Any] | None = None
@@ -134,9 +134,9 @@ class GitLabMixinBase(BaseGitService, HTTPClient):
return result.get('data')
except httpx.HTTPStatusError as e:
raise self.handle_http_status_error(e)
raise self.handle_http_status_error(e) from e
except httpx.HTTPError as e:
raise self.handle_http_error(e)
raise self.handle_http_error(e) from e
async def get_user(self) -> User:
url = f'{self.BASE_URL}/user'