mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-27 01:51:59 +00:00
remove unnecessary try-except
This commit is contained in:
parent
e5b0c85f8c
commit
d243b5c785
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user