From 09666806da1d7405e05cd32f16caf023fb1b3067 Mon Sep 17 00:00:00 2001 From: Mohd Kaif <98801504+KaifAhmad1@users.noreply.github.com> Date: Mon, 13 Apr 2026 17:45:55 +0530 Subject: [PATCH] Potential fix for pull request finding 'Empty except' Co-authored-by: Copilot Autofix powered by AI <223894421+github-code-quality[bot]@users.noreply.github.com> --- mcp/tools/graph.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mcp/tools/graph.py b/mcp/tools/graph.py index 41a56abb..5508025b 100644 --- a/mcp/tools/graph.py +++ b/mcp/tools/graph.py @@ -92,7 +92,7 @@ def handle_get_graph_summary(args: dict) -> dict: # noqa: ARG001 try: edge_count = graph.edge_count() except Exception: - pass + log.exception("graph.edge_count failed; defaulting edge_count to 0") return { "node_count": len(all_nodes), "edge_count": edge_count,