Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 3 additions & 10 deletions pymilvus/milvus_client/_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,13 +40,6 @@ def create_connection(
if connections.has_connection(using):
return using

try:
connections.connect(
using, user, password, db_name, token, uri=uri, _async=use_async, **kwargs
)
except Exception as ex:
logger.error("Failed to create new connection using: %s", using)
raise ex from ex
else:
logger.debug("Created new connection using: %s", using)
return using
connections.connect(using, user, password, db_name, token, uri=uri, _async=use_async, **kwargs)
logger.debug("Created new connection using: %s", using)
return using
Loading