From 28bf3ab246df4d8bb554b2c5a11a147a1741eee4 Mon Sep 17 00:00:00 2001 From: openhands Date: Sat, 1 Nov 2025 16:31:55 +0000 Subject: [PATCH] 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 --- src/dashboard/api.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/dashboard/api.py b/src/dashboard/api.py index ff87541..1a43fab 100644 --- a/src/dashboard/api.py +++ b/src/dashboard/api.py @@ -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(