From e2171d4541f2cd002dbf59328f03e296caab65fa Mon Sep 17 00:00:00 2001 From: Aly Raffauf Date: Tue, 17 Nov 2026 18:29:47 -0500 Subject: [PATCH] fix(python): preserve bridge startup diagnostics for non-UTF-8 logs --- python/albedo_bridge.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python/albedo_bridge.py b/python/albedo_bridge.py index 42f81cbff..8fde15e43 100644 --- a/python/albedo_bridge.py +++ b/python/albedo_bridge.py @@ -98,7 +98,7 @@ def start(run_dir: str, modules: str, token: str) -> socket.socket: status = kernel.poll() if status is not None: try: - with open(log_path, encoding="utf-8") as log: + with open(log_path, encoding="utf-8", errors="replace") as log: detail = log.read().strip() except OSError: detail = "no kernel log" -- knotmirror 0.0.1