mirror of
https://github.com/open-webui/open-webui.git
synced 2026-08-28 05:27:35 +00:00
refac
This commit is contained in:
parent
cdd7b88bec
commit
83ec36cd38
1 changed files with 1 additions and 1 deletions
|
|
@ -2309,7 +2309,7 @@ async def connect_mcp_server(
|
|||
"""
|
||||
mcp_server_connection = None
|
||||
for server_connection in await Config.get('tool_server.connections', []):
|
||||
if server_connection.get('type', '') == 'mcp' and server_connection.get('info', {}).get('id') == server_id:
|
||||
if server_connection.get('type', '') == 'mcp' and (server_connection.get('info') or {}).get('id') == server_id:
|
||||
mcp_server_connection = server_connection
|
||||
break
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue