diff options
Diffstat (limited to 'lorry')
-rwxr-xr-x | lorry | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -543,6 +543,10 @@ class Lorry(cliapp.Application): logging.debug('Running: argv=%s kwargs=%s' % (repr(argv), repr(kwargs))) exit, out, err = self.runcmd_unchecked(argv, **kwargs) + if isinstance(out, bytes): + out = out.decode('utf-8', errors='replace') + if isinstance(err, bytes): + err = err.decode('utf-8', errors='replace') logging.debug('Command: %s\nExit: %s\nStdout:\n%sStderr:\n%s' % (argv, exit, self.indent(out or ''), self.indent(err or ''))) |