Skip to content

Commit

Permalink
added comment for error suppression
Browse files Browse the repository at this point in the history
  • Loading branch information
jagadeeswaran-zipstack committed Dec 19, 2024
1 parent a423d75 commit cee369e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions backend/prompt_studio/prompt_studio_core_v2/serializers.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ def to_representation(self, instance): # type: ignore
default_profile = ProfileManager.get_default_llm_profile(instance)
data[TSKeys.DEFAULT_PROFILE] = default_profile.profile_id
except DefaultProfileError:
# To make it compatible with older projects error suppressed with warning.
logger.warning(
"Default LLM profile doesn't exist for prompt tool %s",
str(instance.tool_id),
Expand Down

0 comments on commit cee369e

Please sign in to comment.