Commit 8d68a3df authored by Robert Jordens's avatar Robert Jordens
Browse files

build/tools: ignore bad encoding when coloring

do not replace characters as that chokes colorama...
parent e4598001
......@@ -52,6 +52,6 @@ def subprocess_call_filtered(command, rules, *, max_matches=1, **kwargs):
universal_newlines=True, bufsize=1,
**kwargs)
with proc:
for line in open(proc.stdout.fileno(), errors="replace"):
for line in open(proc.stdout.fileno(), errors="ignore"):
print(sub_rules(line, rules, max_matches), end="")
return proc.returncode
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment