There was an error while loading. Please reload this page.
1 parent 17aed5d commit 26447e2Copy full SHA for 26447e2
1 file changed
scripts/update_readme_snippets.py
@@ -80,7 +80,7 @@ def process_snippet_block(match: re.Match[str], check_mode: bool = False) -> str
80
81
return replacement
82
83
- except OSError as e:
+ except (OSError, UnicodeDecodeError) as e:
84
# Fatal, not "warn and keep the stale block": that would let --check pass with exit 0.
85
sys.exit(f"Error processing {file_path}: {e}")
86
0 commit comments