Skip to content

Commit db1f04f

Browse files
author
MarcoFalke
committed
Merge bitcoin/bitcoin#24039: bug fix: prevent UnicodeDecodeError when opening log file in feature_init.py
9d3e95d [bugfix] prevent UnicodeDecodeError errors when opening log file in feature_init.py (sogoagain) Pull request description: Should fix #23989 To fix a bug, I modified `feature_init.py` to open the log file as a byte stream when opening it. thank you. ACKs for top commit: MarcoFalke: review ACK 9d3e95d Tree-SHA512: 6e3e57cac5f4865b3894ee4e9fcd9eb2690e824af20e34b4595722bd7043b0c3fe417cc1bfcff25fbab95c66418d3fce13434bd63d0244875a867d08853a5644
2 parents c561f2f + 9d3e95d commit db1f04f

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)