More forgiving rmtree

pull/77/head
Natalino Busa 2017-09-12 00:54:59 +08:00 zatwierdzone przez GitHub
rodzic 065d00aa71
commit a9f9255541
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -334,7 +334,7 @@ class Repo2Docker(Application):
self.log.info(json.dumps(l), extra=dict(phase='building'))
if self.cleanup_checkout:
shutil.rmtree(checkout_path)
shutil.rmtree(checkout_path, ignore_errors=True)
if self.push:
self.push_image()