Ignore UTF-8 decoding errors. Closes #108

This commit is contained in:
Ben Hagen 2014-04-25 20:10:31 +02:00
parent 187ebdf999
commit a59748574f

View file

@ -318,7 +318,7 @@ class Buildozer(object):
ret_stdout = b''.join(ret_stdout) ret_stdout = b''.join(ret_stdout)
if ret_stderr: if ret_stderr:
ret_stderr = b''.join(ret_stderr) ret_stderr = b''.join(ret_stderr)
return (ret_stdout.decode('utf-8') if ret_stdout else None, return (ret_stdout.decode('utf-8', 'ignore') if ret_stdout else None,
ret_stderr.decode('utf-8') if ret_stderr else None, ret_stderr.decode('utf-8') if ret_stderr else None,
process.returncode) process.returncode)