mirror of
https://github.com/Skyvern-AI/skyvern.git
synced 2025-09-10 06:15:18 +00:00
refactor loopblock value (#1379)
This commit is contained in:
parent
086ab6820c
commit
0a6a2d8d33
4 changed files with 87 additions and 26 deletions
|
@ -110,5 +110,17 @@ class WorkflowParameterMissingRequiredValue(BaseWorkflowHTTPException):
|
|||
|
||||
|
||||
class InvalidWaitBlockTime(SkyvernException):
|
||||
def __init__(self, max_sec: int):
|
||||
def __init__(self, max_sec: int) -> None:
|
||||
super().__init__(f"Invalid wait time for wait block, it should be a number between 0 and {max_sec}.")
|
||||
|
||||
|
||||
class FailedToFormatJinjaStyleParameter(SkyvernException):
|
||||
def __init__(self, template: str, msg: str) -> None:
|
||||
super().__init__(
|
||||
f"Failed to format Jinja style parameter {template}. Please make sure the variable reference is correct. reason: {msg}"
|
||||
)
|
||||
|
||||
|
||||
class NoIterableValueFound(SkyvernException):
|
||||
def __init__(self) -> None:
|
||||
super().__init__("No iterable value found for the loop block")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue