Skip to content

Commit afc73d1

Browse files
committed
fix: none output type in exec_run(#3172)
1 parent 7d8a161 commit afc73d1

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

docker/models/containers.py

+2
Original file line numberDiff line numberDiff line change
@@ -211,6 +211,8 @@ def exec_run(self, cmd, stdout=True, stderr=True, stdin=False, tty=False,
211211
resp['Id'], detach=detach, tty=tty, stream=stream, socket=socket,
212212
demux=demux
213213
)
214+
215+
exec_output = tuple(b'' if x is None else x for x in exec_output)
214216
if socket or stream:
215217
return ExecResult(None, exec_output)
216218

0 commit comments

Comments
 (0)