mirror of
https://github.com/OpenHands/OpenHands.git
synced 2025-12-26 05:48:36 +08:00
Fix HTTPException not callable error in action_execution_server middleware (#7215)
Co-authored-by: openhands <openhands@all-hands.dev>
This commit is contained in:
parent
38e866cde4
commit
7084b0238c
@ -546,7 +546,9 @@ if __name__ == '__main__':
|
||||
try:
|
||||
verify_api_key(request.headers.get('X-Session-API-Key'))
|
||||
except HTTPException as e:
|
||||
return e
|
||||
return JSONResponse(
|
||||
status_code=e.status_code, content={'detail': e.detail}
|
||||
)
|
||||
response = await call_next(request)
|
||||
return response
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user