remove unnecessary try-except

This commit is contained in:
Yatsishin Ilya 2022-07-18 09:32:19 +00:00
parent e5b0c85f8c
commit d243b5c785

View File

@ -586,10 +586,7 @@ class ClickHouseCluster:
f"Trying to kill unstopped containers: {unstopped_containers}"
)
for id in unstopped_containers:
try:
run_and_check(f"docker kill {id}", shell=True, nothrow=True)
except:
pass
run_and_check(f"docker kill {id}", shell=True, nothrow=True)
run_and_check(f"docker rm {id}", shell=True, nothrow=True)
unstopped_containers = self.get_running_containers()
if unstopped_containers: