Skip to content

Commit

Permalink
use FileNotFoundError instead of OSError
Browse files Browse the repository at this point in the history
  • Loading branch information
dlech committed Jun 16, 2022
1 parent e6513a9 commit 9f4303b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cibuildwheel/macos.py
Expand Up @@ -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)
Expand Down

0 comments on commit 9f4303b

Please sign in to comment.