From 1c56c6a3b7cc49b99aeb0559a7faaedf6123b0be Mon Sep 17 00:00:00 2001 From: Daniel Upton Date: Mon, 9 Feb 2015 13:33:48 +0000 Subject: Ignore errors from `shutil.rmtree` when removing temporary directory --- bin/ansible-galaxy | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/ansible-galaxy b/bin/ansible-galaxy index 5fd92dde2c..00bb8d12dd 100755 --- a/bin/ansible-galaxy +++ b/bin/ansible-galaxy @@ -380,7 +380,7 @@ def scm_archive_role(scm, role_url, role_version, role_name): print " in directory %s" % tempdir return False - shutil.rmtree(tempdir) + shutil.rmtree(tempdir, ignore_errors=True) return temp_file.name -- cgit v1.2.1