From 06ea76336d84b6db1da4d314544d2d0d3980b73d Mon Sep 17 00:00:00 2001 From: whitequark Date: Mon, 21 Nov 2016 04:27:16 +0000 Subject: [PATCH] artiq_devtool: don't crash on invalid utf-8. --- artiq/frontend/artiq_devtool.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/artiq/frontend/artiq_devtool.py b/artiq/frontend/artiq_devtool.py index fc6f58048..b942b21f5 100644 --- a/artiq/frontend/artiq_devtool.py +++ b/artiq/frontend/artiq_devtool.py @@ -78,7 +78,7 @@ def main(): char = chan.read(1) if char == b"": break - sys.stderr.write(char.decode("utf-8")) + sys.stderr.write(char.decode("utf-8", errors='replace')) for action in args.actions: if action == "build":