mirror of
https://github.com/semantica-agi/semantica.git
synced 2026-08-29 04:26:20 +00:00
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:
co-authored by
Copilot Autofix powered by AI <223894421+github-code-quality[bot]@users.noreply.github.com>
parent
7b31304e1e
commit
e4425818e4
+2
-2
@@ -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"] = {
|
||||
|
||||
Reference in New Issue
Block a user