Issue also decode empty stdout and stderr to strings
@@ -2099,9 +2099,9 @@ def _grep_log_for_errors(log):
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
