Skip to content

Commit b968fc1

Browse files
committed
fix: add explanatory comment to empty except in legacy frontmatter parsing
1 parent 9d0e95b commit b968fc1

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

src/specify_cli/presets.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2550,6 +2550,8 @@ def _find_in_subdirs(base_dir: Path) -> Optional[Path]:
25502550
if isinstance(fm_strategy, str) and fm_strategy.lower() in VALID_PRESET_STRATEGIES:
25512551
strategy = fm_strategy.lower()
25522552
except (yaml.YAMLError, OSError):
2553+
# Best-effort legacy frontmatter parsing: keep default
2554+
# strategy ("replace") when content is unreadable/invalid.
25532555
pass
25542556
version = metadata.get("version", "?") if metadata else "?"
25552557
layers.append({

0 commit comments

Comments
 (0)