fix: catch OSError when Cargo.toml is missing during --cargo introspection

This commit is contained in:
DhruvTilva
2026-06-22 22:54:03 +01:00
committed by safishamsi
parent 5862bce5ca
commit aa06e10fa5
+1 -1
View File
@@ -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, "