diff --git a/lib/inputstreamhelper/utils.py b/lib/inputstreamhelper/utils.py index c7954f08..86330a42 100644 --- a/lib/inputstreamhelper/utils.py +++ b/lib/inputstreamhelper/utils.py @@ -395,7 +395,8 @@ def hardlink(src, dest): def remove_tree(path): """Remove an entire directory tree""" from shutil import rmtree - rmtree(compat_path(path)) + if exists(path): + rmtree(compat_path(path)) def parse_version(vstring):