Skip to content

Commit 010fb67

Browse files
Potential fix for pull request finding
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
1 parent b4bb6f8 commit 010fb67

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/specify_cli/workflows/overlays/_commands.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ def _read_overlay(path: Path) -> tuple[dict[str, Any] | None, list[str]]:
137137
"""Read and parse an overlay YAML file, returning (data, errors)."""
138138
try:
139139
content = path.read_text(encoding="utf-8")
140-
except OSError as exc:
140+
except (OSError, UnicodeDecodeError) as exc:
141141
return None, [f"Failed to read {path}: {exc}"]
142142
try:
143143
data = yaml.safe_load(content)

0 commit comments

Comments
 (0)