Commit 23358b05 authored by José Henrique's avatar José Henrique
Browse files

Generalize exceptions on stream_container_logs_thread

parent 1c8b7c32
......@@ -62,8 +62,14 @@ def stream_container_logs_thread(container_name):
if "Error grabbing logs: unexpected EOF" in line:
break
print(line)
time.sleep(5)
if container.status != "running":
break
except docker.errors.NotFound:
pass
except Exception as e:
traceback.print_exc()
pass
def stream_container_logs(container_name):
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment