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:45:55 +05:30
committed by GitHub
co-authored by Copilot Autofix powered by AI <223894421+github-code-quality[bot]@users.noreply.github.com>
parent 9daddd8186
commit 09666806da
+1 -1
View File
@@ -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,