From f377ac0510db3dd868ce3a787c2c9093c80ed2e7 Mon Sep 17 00:00:00 2001 From: vsr Date: Tue, 26 May 2020 19:18:01 +0300 Subject: [PATCH] Ignore encoding errors from command output --- bin/appliskel/salome_tester/salome_test_driver.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bin/appliskel/salome_tester/salome_test_driver.py b/bin/appliskel/salome_tester/salome_test_driver.py index d3d6bb99e..a8e04fb53 100755 --- a/bin/appliskel/salome_tester/salome_test_driver.py +++ b/bin/appliskel/salome_tester/salome_test_driver.py @@ -42,12 +42,12 @@ def runTest(command): # Display output and errors def processResult(res, out, err): if out: - print(out.decode('utf_8')) + print(out.decode('utf_8', errors='ignore')) pass if err: print(" ** Detected error **") print("Error code: ", res) - print(err.decode('utf_8'), end=' \n') + print(err.decode('utf_8', errors='ignore'), end=' \n') print(" ** end of message **") pass return res -- 2.39.2