Skip to content

Commit 5616b50

Browse files
sahiixxCopilot
andauthored
Update tools/validate_workflows.py
Co-authored-by: Copilot <[email protected]>
1 parent e878b5e commit 5616b50

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tools/validate_workflows.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ def validate_json_file(path: str) -> Tuple[bool, Optional[str]]:
5454
(is_valid, error_message) - error_message is None if valid
5555
"""
5656
try:
57-
with open(path, 'r', encoding='utf-8', errors='ignore') as f:
57+
with open(path, 'r', encoding='utf-8', errors='replace') as f:
5858
content = f.read().strip()
5959

6060
# Skip empty files

0 commit comments

Comments
 (0)