Fix issue where status page does not load if drive not attached

This commit is contained in:
Taylor Helsper 2020-09-09 22:11:05 -05:00
parent 5437bc0170
commit ba246debeb

View File

@ -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"]