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

Do not fail if software directory does not exists.

parent fd42db33
...@@ -183,6 +183,7 @@ class Software(object): ...@@ -183,6 +183,7 @@ class Software(object):
os.chmod (path, 0600) os.chmod (path, 0600)
func(path) func(path)
try: try:
if os.path.exists(self.software_path):
shutil.rmtree(self.software_path, onerror=retry) shutil.rmtree(self.software_path, onerror=retry)
except IOError as error: except IOError as error:
error_string = "I/O error while removing software (%s): %s" % (self.url, error_string = "I/O error while removing software (%s): %s" % (self.url,
......
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