mirror of
https://github.com/OpenHands/OpenHands.git
synced 2025-12-26 05:48:36 +08:00
[Logging]: Add warning logs for gitlab api (#7941)
This commit is contained in:
parent
85e2b73eb4
commit
358166feb2
@ -77,9 +77,12 @@ class GitLabService(GitService):
|
||||
except httpx.HTTPStatusError as e:
|
||||
if e.response.status_code == 401:
|
||||
raise AuthenticationError('Invalid GitLab token')
|
||||
|
||||
logger.warning(f'Status error on GL API: {e}')
|
||||
raise UnknownException('Unknown error')
|
||||
|
||||
except httpx.HTTPError:
|
||||
except httpx.HTTPError as e:
|
||||
logger.warning(f'HTTP error on GL API: {e}')
|
||||
raise UnknownException('Unknown error')
|
||||
|
||||
async def execute_graphql_query(
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user