mirror of
https://github.com/All-Hands-AI/OpenHands.git
synced 2026-01-09 14:57:59 -05:00
fix requests in error (#5389)
This commit is contained in:
@@ -32,5 +32,7 @@ def send_request(
|
||||
_json = response.json()
|
||||
except requests.JSONDecodeError:
|
||||
raise e
|
||||
raise RequestHTTPError(e, detail=_json.get('detail')) from e
|
||||
raise RequestHTTPError(
|
||||
e, response=e.response, detail=_json.get('detail')
|
||||
) from e
|
||||
return response
|
||||
|
||||
Reference in New Issue
Block a user