Commit 5c293dba authored by Łukasz Nowak's avatar Łukasz Nowak

Do not fail if software directory does not exists.

parent fd42db33
......@@ -183,7 +183,8 @@ class Software(object):
os.chmod (path, 0600)
func(path)
try:
shutil.rmtree(self.software_path, onerror=retry)
if os.path.exists(self.software_path):
shutil.rmtree(self.software_path, onerror=retry)
except IOError as error:
error_string = "I/O error while removing software (%s): %s" % (self.url,
error)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment