From a072f894363b4e8f77f8ffa866fa5df5da8c5d69 Mon Sep 17 00:00:00 2001 From: zhuwenxing Date: Mon, 4 Oct 2021 21:54:09 +0800 Subject: [PATCH] [skip ci]Assign value to alias_res before try except (#9231) Signed-off-by: zhuwenxing --- tests/python_client/testcases/test_alias.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/python_client/testcases/test_alias.py b/tests/python_client/testcases/test_alias.py index 78b20537dd..8e881ec8d5 100644 --- a/tests/python_client/testcases/test_alias.py +++ b/tests/python_client/testcases/test_alias.py @@ -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,