Skip to content

Commit

Permalink
Better way to suppress errors
Browse files Browse the repository at this point in the history
  • Loading branch information
jwodder committed Dec 13, 2023
1 parent 82136be commit 22e5fb4
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/versioningit/hatch.py
Original file line number Diff line number Diff line change
Expand Up @@ -113,10 +113,7 @@ def initialize(self, _version: str, build_data: dict[str, Any]) -> None:
def finalize(
self, _version: str, _build_data: dict[str, Any], _artifact_path: str
) -> None:
try:
shutil.rmtree(self.__tmpdir)
except OSError:
pass
shutil.rmtree(self.__tmpdir, ignore_errors=True)


@hookimpl
Expand Down

0 comments on commit 22e5fb4

Please sign in to comment.