Skip to content

Commit

Permalink
Ignore UTF-8 decoding errors. Closes #108
Browse files Browse the repository at this point in the history
  • Loading branch information
cbenhagen committed Apr 25, 2014
1 parent 187ebdf commit a597485
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 a597485

Please sign in to comment.