From: vsr Date: Tue, 26 May 2020 16:18:01 +0000 (+0300) Subject: Ignore encoding errors from command output X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=refs%2Fheads%2Fvsr%2Fclean_up;p=modules%2Fkernel.git Ignore encoding errors from command output --- 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