aboutsummaryrefslogtreecommitdiffhomepage
path: root/infra/utils.py
diff options
context:
space:
mode:
authorGravatar Oliver Chang <oliverchang@users.noreply.github.com>2020-05-04 16:50:25 +1000
committerGravatar GitHub <noreply@github.com>2020-05-04 16:50:25 +1000
commit2d972c91622ad7913f2d8a50feaac58b66c69eb4 (patch)
tree2b99935504dfdb9299c57ad3e19497fc59af21fc /infra/utils.py
parent40c64add9414bf55059247d98432d289291f95da (diff)
Add a better check for crash during bisection. (#3758)
Diffstat (limited to 'infra/utils.py')
-rw-r--r--infra/utils.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/infra/utils.py b/infra/utils.py
index fa5aed20..17cc2379 100644
--- a/infra/utils.py
+++ b/infra/utils.py
@@ -55,8 +55,8 @@ def execute(command, location=None, check_result=False):
stderr=subprocess.PIPE,
cwd=location)
out, err = process.communicate()
- out = out.decode('ascii')
- err = err.decode('ascii')
+ out = out.decode('utf-8', errors='ignore')
+ err = err.decode('utf-8', errors='ignore')
if err:
logging.debug('Stderr of command \'%s\' is %s.', ' '.join(command), err)
if check_result and process.returncode: