Skip to content

Commit

Permalink
fix: none output type in exec_run(#3172)
Browse files Browse the repository at this point in the history
  • Loading branch information
Khushiyant committed Dec 17, 2023
1 parent 7d8a161 commit afc73d1
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions docker/models/containers.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down

0 comments on commit afc73d1

Please sign in to comment.