fix etc yaml

This commit is contained in:
2026-09-18 19:07:43 +08:00
parent 892f6c3a81
commit a87c656574
2 changed files with 4 additions and 3 deletions

View File

@@ -49,7 +49,7 @@ class ETFConfig:
def load(path: str | Path | None = None) -> ETFConfig:
path = Path(path) if path else Path(__file__).resolve().parents[2] / 'etc' / 'etf.yaml'
path = Path(path) if path else Path(__file__).resolve().parents[2] / 'etc' / '_etf.yaml'
try:
raw = yaml.safe_load(path.read_text(encoding='utf-8'))
except (OSError, yaml.YAMLError) as exc: