make MissingValueForParameter a 400 error (#1778)

This commit is contained in:
Shuchang Zheng
2025-02-17 17:11:19 +08:00
committed by GitHub
parent a1e75f5465
commit 0116f56113

View File

@@ -152,7 +152,8 @@ class WorkflowRunNotFound(SkyvernHTTPException):
class MissingValueForParameter(SkyvernHTTPException):
def __init__(self, parameter_key: str, workflow_id: str, workflow_run_id: str) -> None:
super().__init__(
f"Missing value for parameter {parameter_key} in workflow run {workflow_run_id} of workflow {workflow_id}"
f"Missing value for parameter {parameter_key} in workflow run {workflow_run_id} of workflow {workflow_id}",
status_code=status.HTTP_400_BAD_REQUEST,
)