From 2b09e1a0bbf8a5e09ffb150d1065e1251a7806ef Mon Sep 17 00:00:00 2001 From: Damian Giebas Date: Wed, 13 Mar 2019 22:36:36 +0100 Subject: [PATCH] Fix for bug when logcat value which cannot be decode to utf-8 --- buildozer/__init__.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/buildozer/__init__.py b/buildozer/__init__.py index 227d07d..9c003c6 100644 --- a/buildozer/__init__.py +++ b/buildozer/__init__.py @@ -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)