From e8c5a897423c8533ab4d791ec5a871a397acb4f4 Mon Sep 17 00:00:00 2001 From: paoloredis <158162796+paoloredis@users.noreply.github.com> Date: Tue, 21 Oct 2025 15:53:14 +0200 Subject: [PATCH] Ignore non utf8 files in version_archiver.py --- build/version_archiver.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build/version_archiver.py b/build/version_archiver.py index f4cb4a6ee8..9ae33ee2c3 100644 --- a/build/version_archiver.py +++ b/build/version_archiver.py @@ -108,7 +108,7 @@ def inject_url_frontmatter(self): file_path = os.path.join(root, file) # Read the file line by line - with open(file_path, "r", encoding="utf-8") as f: + with open(file_path, "r", encoding="utf-8", errors="ignore") as f: lines = f.readlines() # Find the positions of the first and second '---' markers