mirror of
https://github.com/mynodebtc/mynode.git
synced 2024-09-25 01:58:12 +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():
|
||||
containers = []
|
||||
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()
|
||||
except:
|
||||
containers = ["ERROR"]
|
||||
|
|
Loading…
Reference in New Issue
Block a user