make jinja rendering in blocks more strict (#3827)

This commit is contained in:
Jonathan Dobson
2025-10-27 15:34:01 -04:00
committed by GitHub
parent a889a238d8
commit 4bb9a650cc
4 changed files with 61 additions and 1 deletions

View File

@@ -121,6 +121,15 @@ class FailedToFormatJinjaStyleParameter(SkyvernException):
)
class MissingJinjaVariables(SkyvernException):
def __init__(self, template: str, variables: set[str]) -> None:
self.variables = variables
super().__init__(
f"There are missing variables for '{template}'. Please make sure the variables are supplied. Missing variables: {variables}"
)
class NoIterableValueFound(SkyvernException):
def __init__(self) -> None:
super().__init__("No iterable value found for the loop block")