From aa06e10fa5159aeb6c4417d1d188a6f42fcf0165 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 19f08a3..84c6901 100644 --- a/graphify/__main__.py +++ b/graphify/__main__.py @@ -4395,7 +4395,7 @@ def main() -> 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, "