From: vsr Date: Fri, 19 Mar 2021 09:27:44 +0000 (+0300) Subject: Ignore unicode errors from output X-Git-Tag: V9_7_0a1~7 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=2c8bb1fdb7c26758014306a2650e7a683eb9a12d;p=modules%2Fkernel.git Ignore unicode errors from output --- diff --git a/bin/appliskel/salome_tester/salome_test_driver.py b/bin/appliskel/salome_tester/salome_test_driver.py index 4bc37aa4c..7f6c485d6 100755 --- a/bin/appliskel/salome_tester/salome_test_driver.py +++ b/bin/appliskel/salome_tester/salome_test_driver.py @@ -43,8 +43,8 @@ def runTest(command): # Display output and errors def processResult(res, out, err): # Decode output - out = out.decode('utf_8') if out else '' - err = err.decode('utf_8') if err else '' + out = out.decode('utf_8', errors='ignore') if out else '' + err = err.decode('utf_8', errors='ignore') if err else '' # Execute hook if it is installed if getattr(processResult, '__hook', None):