Ignore errors for rmtree after archive extraction

The folder was there and it was empty.
It looks like https://github.com/python/cpython/issues/128076.

Signed-off-by: Dominika Vesela <dhodovsk@redhat.com>
(cherry picked from commit 6569e5726298af8fdb5f6d54cd37b1b3d409de8d)
This commit is contained in:
Dominika Vesela 2025-08-07 10:31:21 +02:00 committed by Stepan Oksanichenko
parent 05ded4aaa8
commit 363a28f561

View File

@ -459,4 +459,4 @@ def download_and_extract_archive(compose, task_id, fname, destination):
local_path = _download_archive(task_id, fname, archive_url, tmp_dir) local_path = _download_archive(task_id, fname, archive_url, tmp_dir)
_extract_archive(task_id, fname, local_path, destination) _extract_archive(task_id, fname, local_path, destination)
finally: finally:
shutil.rmtree(tmp_dir) shutil.rmtree(tmp_dir, ignore_errors=True)