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>
This commit is contained in:
Mohd Kaif
2026-04-13 17:43:56 +05:30
committed by GitHub
co-authored by Copilot Autofix powered by AI <223894421+github-code-quality[bot]@users.noreply.github.com>
parent 7b31304e1e
commit e4425818e4
+2 -2
View File
@@ -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"] = {