From 2c8bb1fdb7c26758014306a2650e7a683eb9a12d Mon Sep 17 00:00:00 2001 From: vsr Date: Fri, 19 Mar 2021 12:27:44 +0300 Subject: [PATCH] Ignore unicode errors from 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 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): -- 2.39.2