File tree 1 file changed +3
-3
lines changed 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -194,7 +194,7 @@ def sanitize_output(self, output):
194
194
# https://code.djangoproject.com/ticket/28201
195
195
sanitized = sanitized .replace ('\x00 ' , '' )
196
196
except (TypeError , AttributeError ):
197
- sanitized = None
197
+ sanitized = ""
198
198
199
199
# Chunk the output data to be less than ``DATA_UPLOAD_MAX_MEMORY_SIZE``
200
200
output_length = len (output ) if output else 0
@@ -317,8 +317,8 @@ def run(self):
317
317
cmd_stdout = out
318
318
# Docker returns None when there's no stderr/stdout
319
319
# so we need to convert that to a string.
320
- self .output = self .sanitize_output (cmd_stdout or "" )
321
- self .error = self .sanitize_output (cmd_stderr or "" )
320
+ self .output = self .sanitize_output (cmd_stdout )
321
+ self .error = self .sanitize_output (cmd_stderr )
322
322
cmd_ret = client .exec_inspect (exec_id = exec_cmd ['Id' ])
323
323
self .exit_code = cmd_ret ['ExitCode' ]
324
324
You can’t perform that action at this time.
0 commit comments