mirror of
https://github.com/open-webui/open-webui.git
synced 2025-12-16 11:57:51 +01:00
refac
This commit is contained in:
@@ -164,9 +164,10 @@ async def verify_tool_servers_config(
|
|||||||
"specs": specs,
|
"specs": specs,
|
||||||
}
|
}
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
|
log.debug(f"Failed to create MCP client: {e}")
|
||||||
raise HTTPException(
|
raise HTTPException(
|
||||||
status_code=400,
|
status_code=400,
|
||||||
detail=f"Failed to create MCP client: {str(e)}",
|
detail=f"Failed to create MCP client",
|
||||||
)
|
)
|
||||||
finally:
|
finally:
|
||||||
if client:
|
if client:
|
||||||
|
|||||||
Reference in New Issue
Block a user