diff --git a/test/functional/test_framework/test_node.py b/test/functional/test_framework/test_node.py index f2ef17ccb72..7ef3280ffcf 100755 --- a/test/functional/test_framework/test_node.py +++ b/test/functional/test_framework/test_node.py @@ -440,7 +440,7 @@ class TestNode(): while True: found = True - with open(self.debug_log_path, encoding='utf-8') as dl: + with open(self.debug_log_path, encoding="utf-8", errors="replace") as dl: dl.seek(prev_size) log = dl.read() print_log = " - " + "\n - ".join(log.splitlines())