diff --git a/build/version_archiver.py b/build/version_archiver.py index f4cb4a6ee..9ae33ee2c 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