mirror of
https://github.com/Skyvern-AI/skyvern.git
synced 2025-09-10 23:44:36 +00:00
Check error existance for the context manager handling (#757)
This commit is contained in:
parent
9e0201627b
commit
6f61573f9b
1 changed files with 2 additions and 1 deletions
|
@ -293,7 +293,8 @@ class WorkflowRunContext:
|
|||
and isinstance(parameter.source, OutputParameter)
|
||||
and parameter.source.key == output_parameter.key
|
||||
):
|
||||
if isinstance(value, dict) and "errors" in value:
|
||||
if isinstance(value, dict) and "errors" in value and value["errors"]:
|
||||
# Is this the correct way to handle errors from task blocks?
|
||||
LOG.error(
|
||||
f"Output parameter {output_parameter.key} has errors. Setting ContextParameter {parameter.key} value to None"
|
||||
)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue