fix: None crash in providers, _merge_deepest loop, lock-file false positives, stage() race, cache TTL, config merge, changelog indent, template check
This commit is contained in:
14 files changed
+31
-17
No files matched your search
@@ -209,6 +209,11 @@ def delete_file(filepath: Path | str) -> bool:
|
||||
|
||||
def load_template_env(sub_dir: str) -> Environment:
|
||||
template_dir = Path(__file__).parent / "templates" / sub_dir
|
||||
if not template_dir.is_dir():
|
||||
raise RuntimeError(
|
||||
f"Template directory not found: {template_dir}. "
|
||||
"The installation may be corrupted."
|
||||
)
|
||||
return Environment(loader=FileSystemLoader(template_dir))
|
||||
|
||||
|
||||
|
||||
Reference in new issue
Block a user