mirror of
https://github.com/Skyvern-AI/skyvern.git
synced 2025-09-16 18:29:40 +00:00
Disable codeblock (#910)
This commit is contained in:
parent
2c7cbf0eb8
commit
f22b8a04aa
2 changed files with 7 additions and 0 deletions
|
@ -22,6 +22,7 @@ from pydantic import BaseModel, Field
|
|||
from skyvern.config import settings
|
||||
from skyvern.exceptions import (
|
||||
ContextParameterValueNotFound,
|
||||
DisabledBlockExecutionError,
|
||||
FailedToNavigateToUrl,
|
||||
MissingBrowserStatePage,
|
||||
TaskNotFound,
|
||||
|
@ -534,6 +535,7 @@ class CodeBlock(Block):
|
|||
return self.parameters
|
||||
|
||||
async def execute(self, workflow_run_id: str, **kwargs: dict) -> BlockResult:
|
||||
raise DisabledBlockExecutionError("CodeBlock is disabled")
|
||||
# get workflow run context
|
||||
workflow_run_context = self.get_workflow_run_context(workflow_run_id)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue