[skip ci]Assign value to alias_res before try except (#9231)

Signed-off-by: zhuwenxing <wenxing.zhu@zilliz.com>
pull/9234/head
zhuwenxing 2021-10-04 21:54:09 +08:00 committed by GitHub
parent f2edbf3854
commit a072f89436
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -271,7 +271,7 @@ class TestAliasOperation(TestcaseBase):
search_params = {"metric_type": "L2", "params": {"nprobe": 10}}
query = [[random.random() for _ in range(ct.default_dim)] for _ in range(1)]
alias_res = None
try:
alias_res = collection_alias.search(
query, "float_vector", search_params, topK,