Skip to content

Commit

Permalink
unknown user error
Browse files Browse the repository at this point in the history
Signed-off-by: Filip Haltmayer <[email protected]>
  • Loading branch information
Filip Haltmayer committed May 22, 2023
1 parent dc1564f commit f734509
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pymilvus/orm/connections.py
Original file line number Diff line number Diff line change
Expand Up @@ -288,7 +288,7 @@ def connect_milvus(**kwargs):
timeout = t if isinstance(t, (int, float)) else Config.MILVUS_CONN_TIMEOUT
gh._wait_for_channel_ready(timeout=timeout)

kwargs.pop('password')
kwargs.pop('password', None)
kwargs.pop('secure', None)

self._connected_alias[alias] = gh
Expand Down Expand Up @@ -317,8 +317,8 @@ def with_config(config: Tuple) -> bool:
)

# Make sure passed in None doesnt break
user = str(user or "")
password = str(password or "")
user = '' if user is None else str(user)
user = '' if password is None else str(password)

# 1st Priority: connection from params
if with_config(config):
Expand Down

0 comments on commit f734509

Please sign in to comment.