fix: dead code cleanup in MCP server error handler

raise e makes the error logging and JSON error response below it unreachable
This commit is contained in:
Ryan Crabbe 2026-01-29 16:40:55 -08:00
parent 12f58247ef
commit 26611dd4bd

View file

@ -1898,7 +1898,6 @@ if MCP_AVAILABLE:
await session_manager.handle_request(scope, receive, send)
except Exception as e:
raise e
verbose_logger.exception(f"Error handling MCP request: {e}")
# Instead of re-raising, try to send a graceful error response
try: