fix: Properly handle HTTPException in signals endpoint

- Added specific exception handling for HTTPException to prevent double-wrapping
- HTTPException instances are now re-raised directly without modification
- This ensures clear error messages are returned to the client
This commit is contained in:
openhands 2025-11-01 16:31:55 +00:00
parent 26bcc8d83f
commit 28bf3ab246
1 changed files with 3 additions and 0 deletions

View File

@ -649,6 +649,9 @@ async def get_signals():
status_code=503,
detail="No signals available from protocol servers. Please check server connectivity."
)
except HTTPException:
# Re-raise HTTP exceptions directly
raise
except Exception as e:
logger.error("failed_to_get_protocol_data", error=str(e))
raise HTTPException(