Skip to content

Commit

Permalink
Merge pull request #112 from cbenhagen/patch-2
Browse files Browse the repository at this point in the history
Ignore UTF-8 decoding errors. Closes #108
  • Loading branch information
tito committed May 1, 2014
2 parents 965a1c2 + a597485 commit aba13fd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion buildozer/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -318,7 +318,7 @@ def cmd(self, command, **kwargs):
ret_stdout = b''.join(ret_stdout)
if 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,
process.returncode)

Expand Down

0 comments on commit aba13fd

Please sign in to comment.