Update cognee-mcp/cognee_mcp/server.py

Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
This commit is contained in:
Vasilije 2025-01-12 16:13:21 +01:00 committed by GitHub
parent 7b0bfe9504
commit cf4737b0a2
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -197,7 +197,7 @@ async def handle_call_tool(
with open(os.devnull, "w") as fnull:
with redirect_stdout(fnull), redirect_stderr(fnull):
try:
await cognee.visualize
await cognee.visualize()
img = get_freshest_png(".")
return types.Image(data=img.tobytes(), format="png")
except (FileNotFoundError, IOError, ValueError) as e: