From e4425818e4352022efae9eb95ee15726ec736468 Mon Sep 17 00:00:00 2001 From: Mohd Kaif <98801504+KaifAhmad1@users.noreply.github.com> Date: Mon, 13 Apr 2026 17:43:56 +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/export.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mcp/tools/export.py b/mcp/tools/export.py index d2ea1733..fc7d9cc7 100644 --- a/mcp/tools/export.py +++ b/mcp/tools/export.py @@ -34,8 +34,8 @@ def handle_export_graph(args: dict) -> dict: if hasattr(graph, "find_edges"): try: edges = list(graph.find_edges()) - except Exception: - pass + except Exception as exc: + log.debug("Failed to collect edges during JSON export; continuing with empty edges: %s", exc) payload: dict = {"nodes": nodes, "edges": edges} if include_metadata: payload["meta"] = {