mirror of
https://github.com/BerriAI/litellm.git
synced 2026-09-07 08:26:10 +00:00
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:
parent
12f58247ef
commit
26611dd4bd
1 changed files with 0 additions and 1 deletions
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue