mirror of
https://github.com/Skyvern-AI/skyvern.git
synced 2025-09-15 01:39:41 +00:00
validate credential IDs before workflow execution (#2737)
This commit is contained in:
parent
70f5106ea2
commit
14bc711240
2 changed files with 18 additions and 0 deletions
|
@ -163,6 +163,14 @@ class MissingValueForParameter(SkyvernHTTPException):
|
|||
)
|
||||
|
||||
|
||||
class InvalidCredentialId(SkyvernHTTPException):
|
||||
def __init__(self, credential_id: str) -> None:
|
||||
super().__init__(
|
||||
f"Invalid credential ID: {credential_id}. Failed to resolve to a valid credential.",
|
||||
status_code=status.HTTP_400_BAD_REQUEST,
|
||||
)
|
||||
|
||||
|
||||
class WorkflowParameterNotFound(SkyvernHTTPException):
|
||||
def __init__(self, workflow_parameter_id: str) -> None:
|
||||
super().__init__(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue