artiq_devtool: don't crash on invalid utf-8.

This commit is contained in:
whitequark 2016-11-21 04:27:16 +00:00
parent b562b0fbc4
commit 06ea76336d

View File

@ -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":