From 3df4b6ee4cb6e948da56d31e31c757cfa67da7de Mon Sep 17 00:00:00 2001 From: Khushiyant Date: Sun, 17 Dec 2023 21:21:57 +0530 Subject: [PATCH] fix: none output type in exec_run(#3172) Signed-off-by: Khushiyant --- docker/models/containers.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/docker/models/containers.py b/docker/models/containers.py index 4725d6f6f..536ac1af8 100644 --- a/docker/models/containers.py +++ b/docker/models/containers.py @@ -211,6 +211,8 @@ def exec_run(self, cmd, stdout=True, stderr=True, stdin=False, tty=False, resp['Id'], detach=detach, tty=tty, stream=stream, socket=socket, demux=demux ) + + exec_output = tuple(b'' if x is None else x for x in exec_output) if socket or stream: return ExecResult(None, exec_output)