Skip to content

Commit 9d3e95d

Browse files
committed
[bugfix] prevent UnicodeDecodeError errors when opening log file in feature_init.py
open log file as a raw byte stream in feature_init.py (fixes #23989)
1 parent c561f2f commit 9d3e95d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/functional/feature_init.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ def check_clean_start():
9393
additional_lines = random.randint(1, num_total_logs)
9494
self.log.debug(f"Starting node and will exit after {additional_lines} lines")
9595
node.start(extra_args=['-txindex=1'])
96-
logfile = open(node.debug_log_path, 'r', encoding='utf8')
96+
logfile = open(node.debug_log_path, 'rb')
9797

9898
MAX_SECS_TO_WAIT = 10
9999
start = time.time()

0 commit comments

Comments
 (0)