Skip to content

Commit

Permalink
remove unnecessary uuid check
Browse files Browse the repository at this point in the history
  • Loading branch information
cyflhn committed Dec 14, 2024
1 parent 197a756 commit 6894579
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions api/core/app/apps/message_based_app_generator.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import json
import logging
import uuid
from collections.abc import Generator
from datetime import UTC, datetime
from os import getenv
Expand Down Expand Up @@ -212,10 +211,6 @@ def _init_generate_records(
and customized_conversation_id
and len(customized_conversation_id) > 0
):
try:
uuid.UUID(customized_conversation_id, version=CONVERSATION_UUID_VERSION)
except ValueError:
raise InvalidConversationIDError()
conversation.id = customized_conversation_id
try:
db.session.add(conversation)
Expand Down

0 comments on commit 6894579

Please sign in to comment.