Add block labels validation in run_blocks (#4500)
This commit is contained in:
committed by
GitHub
parent
c82efa2b62
commit
5cef681995
@@ -867,9 +867,12 @@ class NoElementFound(SkyvernException):
|
||||
super().__init__("No element found.")
|
||||
|
||||
|
||||
class OutputParameterNotFound(SkyvernException):
|
||||
class OutputParameterNotFound(SkyvernHTTPException):
|
||||
def __init__(self, block_label: str, workflow_permanent_id: str) -> None:
|
||||
super().__init__(f"Output parameter for {block_label} not found in workflow {workflow_permanent_id}")
|
||||
super().__init__(
|
||||
f"Output parameter for {block_label} not found in workflow {workflow_permanent_id}",
|
||||
status_code=status.HTTP_400_BAD_REQUEST,
|
||||
)
|
||||
|
||||
|
||||
class AzureBaseError(SkyvernException):
|
||||
|
||||
Reference in New Issue
Block a user