Skip to content

Commit

Permalink
ignore errors
Browse files Browse the repository at this point in the history
  • Loading branch information
IlyasMoutawwakil committed Dec 16, 2024
1 parent 7336fce commit 942f0e0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion optimum_benchmark/backends/py_txi/backend.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ def load(self) -> None:
try:
self.tmpdir.cleanup()
except Exception:
shutil.rmtree(self.tmpdir.name)
shutil.rmtree(self.tmpdir.name, ignore_errors=True)

def download_pretrained_model(self) -> None:
model_snapshot_folder = snapshot_download(self.config.model, **self.config.model_kwargs)
Expand Down

0 comments on commit 942f0e0

Please sign in to comment.