From 2d64e2ee59281e358253fadb04432a040f9392ee Mon Sep 17 00:00:00 2001 From: deadc0de6 Date: Tue, 22 Oct 2019 08:20:14 +0200 Subject: [PATCH] ignore removing non-existing path --- dotdrop/utils.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/dotdrop/utils.py b/dotdrop/utils.py index 49b03a9..f89c122 100644 --- a/dotdrop/utils.py +++ b/dotdrop/utils.py @@ -94,6 +94,8 @@ def get_unique_tmp_name(): def remove(path, quiet=False): """remove a file/directory/symlink""" + if not path: + return if not os.path.lexists(path): if quiet: return