From c20312a6904cdc95b5cab9af4439656a99b59b4c Mon Sep 17 00:00:00 2001 From: Oz N Tiram Date: Mon, 21 Aug 2023 00:41:08 +0200 Subject: [PATCH] Only attempt to remove path if it exists --- tasks/vendoring/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tasks/vendoring/__init__.py b/tasks/vendoring/__init__.py index 9b37c930..2d0c6652 100644 --- a/tasks/vendoring/__init__.py +++ b/tasks/vendoring/__init__.py @@ -120,7 +120,7 @@ def remove_all(paths): for path in paths: if path.is_dir(): drop_dir(path) - else: + elif path.exists(): print(f"Removing {path}") path.unlink()