mirror of
https://github.com/open-webui/open-webui
synced 2025-06-26 02:07:15 +00:00
refac: use logging instead of print
This commit is contained in:
parent
27e8c6fce4
commit
81af20aa9b
@ -407,7 +407,7 @@ async def get_tool_server_data(token: str, url: str) -> Dict[str, Any]:
|
|||||||
else:
|
else:
|
||||||
res = await response.json()
|
res = await response.json()
|
||||||
except Exception as err:
|
except Exception as err:
|
||||||
print("Error:", err)
|
log.exception(f"Could not fetch tool server spec from {url}")
|
||||||
if isinstance(err, dict) and "detail" in err:
|
if isinstance(err, dict) and "detail" in err:
|
||||||
error = err["detail"]
|
error = err["detail"]
|
||||||
else:
|
else:
|
||||||
|
Loading…
Reference in New Issue
Block a user