Break properly when no builders are found

pull/42/head
yuvipanda 2017-07-28 19:31:52 -07:00
rodzic 43a5848a3c
commit b4215161fb
1 zmienionych plików z 3 dodań i 2 usunięć

Wyświetl plik

@ -292,9 +292,10 @@ class Repo2Docker(Application):
self.log.info(l['error'], extra=dict(phase='failure'))
sys.exit(1)
else:
self.log.info(json.dumps(l), extra=dict(phase='failure'))
sys.exit(1)
self.log.info(json.dumps(l), extra=dict(phase='building'))
break
else:
raise Exception("No builder found!")
if self.cleanup_checkout:
shutil.rmtree(checkout_path)