diff --git a/cibuildwheel/macos.py b/cibuildwheel/macos.py index 18ccb04b..91ba3f8e 100644 --- a/cibuildwheel/macos.py +++ b/cibuildwheel/macos.py @@ -537,7 +537,7 @@ def build(options: Options, tmp_path: Path) -> None: if abi3_wheel is None: try: (build_options.output_dir / repaired_wheel.name).unlink() - except OSError: + except FileNotFoundError: pass shutil.move(str(repaired_wheel), build_options.output_dir)