[core] Ignore unknown UTF-8 characters

This commit is contained in:
Tobias Witek 2019-09-25 19:00:08 +02:00
parent e2e365c681
commit 4a5ae622aa

View file

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