[core] Ignore unknown UTF-8 characters
This commit is contained in:
parent
e2e365c681
commit
4a5ae622aa
1 changed files with 1 additions and 1 deletions
|
@ -31,7 +31,7 @@ def execute(cmd, wait=True):
|
||||||
raise RuntimeError("{} exited with {}".format(cmd, proc.returncode))
|
raise RuntimeError("{} exited with {}".format(cmd, proc.returncode))
|
||||||
|
|
||||||
if hasattr(out, "decode"):
|
if hasattr(out, "decode"):
|
||||||
rv = out.decode("utf-8")
|
rv = out.decode("utf-8", "ignore")
|
||||||
else:
|
else:
|
||||||
rv = out
|
rv = out
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue