aboutsummaryrefslogtreecommitdiff
path: root/pw_cli
diff options
context:
space:
mode:
authorWyatt Hepler <hepler@google.com>2020-01-09 16:34:54 -0800
committerCQ Bot Account <commit-bot@chromium.org>2020-01-10 01:14:10 +0000
commit8d7f82d0c4867649cdf865aee2416c7c9bca6e6b (patch)
treefd4b68ca974c5fe976400c226d93009afb705d0a /pw_cli
parent706a5ae8283b8a69713411aa6dcb37a86429ce8c (diff)
downloadpigweed-8d7f82d0c4867649cdf865aee2416c7c9bca6e6b.tar.gz
pw_cli: Handle decoding errors for log statement
Change-Id: I71c22f624253fc35524ae6500e90ee04e06e89f3
Diffstat (limited to 'pw_cli')
-rw-r--r--pw_cli/py/pw_cli/process.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/pw_cli/py/pw_cli/process.py b/pw_cli/py/pw_cli/process.py
index 4d29b12d9..7467df8df 100644
--- a/pw_cli/py/pw_cli/process.py
+++ b/pw_cli/py/pw_cli/process.py
@@ -53,7 +53,7 @@ async def run_async(*args: str, silent: bool = False) -> int:
_LOG.log(pw_cli.log.LOGLEVEL_STDOUT, '[%s] %s',
_COLOR.bold_white(process.pid),
- line.decode().rstrip())
+ line.decode(errors='replace').rstrip())
status = await process.wait()
if status == 0: