From dc6af7ec99ba0fd5426b4ad63a67f3e220b8e6e2 Mon Sep 17 00:00:00 2001 From: DhruvTilva Date: Mon, 22 Jun 2026 23:41:46 +0530 Subject: [PATCH] fix: catch OSError when Cargo.toml is missing during --cargo introspection --- graphify/__main__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/graphify/__main__.py b/graphify/__main__.py index 2505a56b7..3d06936cf 100644 --- a/graphify/__main__.py +++ b/graphify/__main__.py @@ -4395,7 +4395,7 @@ def _progress(idx: int, total: int, _result: dict) -> None: print("[graphify extract] introspecting Cargo workspace...") try: cargo_result = introspect_cargo(target) - except (ConnectionError, ImportError) as exc: + except (ConnectionError, ImportError, OSError) as exc: print(f"error: {exc}", file=sys.stderr) sys.exit(1) print(f"[graphify extract] Cargo: {len(cargo_result['nodes'])} nodes, "