Skip to content

Commit

Permalink
Issue riptano#670: also decode empty stdout and stderr to strings
Browse files Browse the repository at this point in the history
  • Loading branch information
ptbannister committed Apr 10, 2018
1 parent 11ca0d5 commit 094a551
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ccmlib/node.py
Original file line number Diff line number Diff line change
Expand Up @@ -2099,9 +2099,9 @@ def log_line_category(line):

def handle_external_tool_process(process, cmd_args):
out, err = process.communicate()
if out and isinstance(out, bytes):
if (out is not None) and isinstance(out, bytes):
out = out.decode()
if err and isinstance(err, bytes):
if (err is not None) and isinstance(err, bytes):
err = err.decode()
rc = process.returncode

Expand Down

0 comments on commit 094a551

Please sign in to comment.