From 5e33628959fc45f2ac8c606c4d80b1d14b1f2f7a Mon Sep 17 00:00:00 2001 From: Gabriel Luiz Freitas Almeida Date: Sat, 22 Jun 2024 20:41:29 -0300 Subject: [PATCH] chore: Update post_process_raw function in artifact.py MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The post_process_raw function in artifact.py has been updated to set the raw value to "Built Successfully ✨" when the artifact type is unknown. This change improves the clarity of the code and provides a more meaningful message for unknown artifact types. --- src/backend/base/langflow/schema/artifact.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/backend/base/langflow/schema/artifact.py b/src/backend/base/langflow/schema/artifact.py index 75ca133da..97d449f7b 100644 --- a/src/backend/base/langflow/schema/artifact.py +++ b/src/backend/base/langflow/schema/artifact.py @@ -50,6 +50,6 @@ def post_process_raw(raw, artifact_type: str): if artifact_type == ArtifactType.STREAM.value: raw = "" elif artifact_type == ArtifactType.UNKNOWN.value: - raw = str(raw) + raw = "Built Successfully ✨" return raw