add wati block (#1254)

This commit is contained in:
LawyZheng 2024-11-25 10:42:34 +08:00 committed by GitHub
parent 303153b305
commit 284fba0aba
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 60 additions and 0 deletions

View file

@ -114,3 +114,8 @@ class FailedToParseActionInstruction(SkyvernException):
super().__init__(
f"Failed to parse the action instruction as '{reason}({error_type})'",
)
class InvalidWaitBlockTime(SkyvernException):
def __init__(self, max_sec: int):
super().__init__(f"Invalid wait time for wait block, it should be a number between 0 and {max_sec}.")