Skip to content

Commit

Permalink
Raise error instead
Browse files Browse the repository at this point in the history
  • Loading branch information
collindutter committed Sep 9, 2024
1 parent d95e116 commit a5ccf9d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion griptape/tasks/tool_task.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ def run(self) -> BaseArtifact:
if isinstance(first_artifact, BaseArtifact):
self.output = first_artifact
else:
self.output = ErrorArtifact(f"Output is not an Artifact: {type(subtask.output[0])}")
raise ValueError(f"Output is not an Artifact: {type(first_artifact)}")
else:
self.output = InfoArtifact("No tool output")
except Exception as e:
Expand Down

0 comments on commit a5ccf9d

Please sign in to comment.