Update cognee-mcp/cognee_mcp/server.py
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
This commit is contained in:
parent
7b0bfe9504
commit
cf4737b0a2
1 changed files with 1 additions and 1 deletions
|
|
@ -197,7 +197,7 @@ async def handle_call_tool(
|
||||||
with open(os.devnull, "w") as fnull:
|
with open(os.devnull, "w") as fnull:
|
||||||
with redirect_stdout(fnull), redirect_stderr(fnull):
|
with redirect_stdout(fnull), redirect_stderr(fnull):
|
||||||
try:
|
try:
|
||||||
await cognee.visualize
|
await cognee.visualize()
|
||||||
img = get_freshest_png(".")
|
img = get_freshest_png(".")
|
||||||
return types.Image(data=img.tobytes(), format="png")
|
return types.Image(data=img.tobytes(), format="png")
|
||||||
except (FileNotFoundError, IOError, ValueError) as e:
|
except (FileNotFoundError, IOError, ValueError) as e:
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue