mirror of
https://github.com/mynodebtc/mynode.git
synced 2024-11-12 08:29:16 +00:00
Fix issue where status page does not load if drive not attached
This commit is contained in:
parent
5437bc0170
commit
ba246debeb
|
@ -637,7 +637,7 @@ def reset_docker():
|
||||||
def get_docker_running_containers():
|
def get_docker_running_containers():
|
||||||
containers = []
|
containers = []
|
||||||
try:
|
try:
|
||||||
text = subprocess.check_output("docker ps --format '{{.Names}}'", shell=True).decode("utf8")
|
text = subprocess.check_output("docker ps --format '{{.Names}}'", shell=True, timeout=3).decode("utf8")
|
||||||
containers = text.splitlines()
|
containers = text.splitlines()
|
||||||
except:
|
except:
|
||||||
containers = ["ERROR"]
|
containers = ["ERROR"]
|
||||||
|
|
Loading…
Reference in New Issue
Block a user