Skip to content

Commit 9f4303b

Browse files
authored
use FileNotFoundError instead of OSError
1 parent e6513a9 commit 9f4303b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cibuildwheel/macos.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -537,7 +537,7 @@ def build(options: Options, tmp_path: Path) -> None:
537537
if abi3_wheel is None:
538538
try:
539539
(build_options.output_dir / repaired_wheel.name).unlink()
540-
except OSError:
540+
except FileNotFoundError:
541541
pass
542542

543543
shutil.move(str(repaired_wheel), build_options.output_dir)

0 commit comments

Comments
 (0)