Skip to content

Commit e8c5a89

Browse files
authored
Ignore non utf8 files in version_archiver.py
1 parent 6ee0bc9 commit e8c5a89

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

build/version_archiver.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ def inject_url_frontmatter(self):
108108
file_path = os.path.join(root, file)
109109

110110
# Read the file line by line
111-
with open(file_path, "r", encoding="utf-8") as f:
111+
with open(file_path, "r", encoding="utf-8", errors="ignore") as f:
112112
lines = f.readlines()
113113

114114
# Find the positions of the first and second '---' markers

0 commit comments

Comments
 (0)