forked from M-Labs/artiq
artiq_devtool: don't crash on invalid utf-8.
This commit is contained in:
parent
b562b0fbc4
commit
06ea76336d
@ -78,7 +78,7 @@ def main():
|
|||||||
char = chan.read(1)
|
char = chan.read(1)
|
||||||
if char == b"":
|
if char == b"":
|
||||||
break
|
break
|
||||||
sys.stderr.write(char.decode("utf-8"))
|
sys.stderr.write(char.decode("utf-8", errors='replace'))
|
||||||
|
|
||||||
for action in args.actions:
|
for action in args.actions:
|
||||||
if action == "build":
|
if action == "build":
|
||||||
|
Loading…
Reference in New Issue
Block a user