diff --git a/tools/donate-cpu.py b/tools/donate-cpu.py index e7e08c4fb..c1c1a33ed 100644 --- a/tools/donate-cpu.py +++ b/tools/donate-cpu.py @@ -129,7 +129,7 @@ def scanPackage(workPath, cppcheck): print(cmd) p = subprocess.Popen(cmd.split(), stdout=subprocess.PIPE, stderr=subprocess.PIPE) comm = p.communicate() - errout = comm[1].decode('utf-8') + errout = comm[1].decode(encoding='utf-8', errors='ignore') count = 0 for line in errout.split('\n'): if re.match(r'.*:[0-9]+:.*\]$', line):