use FileNotFoundError instead of OSError

This commit is contained in:
David Lechner
2022-06-16 10:40:48 -05:00
committed by GitHub
parent e6513a9b28
commit 9f4303ba2c
+1 -1
View File
@@ -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)