Fix for bug when logcat value which cannot be decode to utf-8

This commit is contained in:
Damian Giebas 2019-03-13 22:36:36 +01:00
parent 1edbb7e0e5
commit 2b09e1a0bb

View file

@ -328,7 +328,7 @@ class Buildozer(object):
ret_stdout.append(chunk)
if show_output:
if IS_PY3:
stderr.write(chunk.decode('utf-8'))
stderr.write(chunk.decode('utf-8', 'replace'))
else:
stdout.write(chunk)
if fd_stderr in readx:
@ -339,7 +339,7 @@ class Buildozer(object):
ret_stderr.append(chunk)
if show_output:
if IS_PY3:
stderr.write(chunk.decode('utf-8'))
stderr.write(chunk.decode('utf-8', 'replace'))
else:
stderr.write(chunk)