From f99c37aede577291aef30dabc45207610c00a984 Mon Sep 17 00:00:00 2001 From: Andres Caicedo Date: Thu, 20 Apr 2023 16:42:34 +0200 Subject: [PATCH] Update milvus_memory_test.py The 'err' variable in the except block is an instance of the ImportError class. --- tests/milvus_memory_test.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/milvus_memory_test.py b/tests/milvus_memory_test.py index 84fd6e6d..ba1e4fc7 100644 --- a/tests/milvus_memory_test.py +++ b/tests/milvus_memory_test.py @@ -68,5 +68,5 @@ try: stats = self.memory.get_stats() self.assertEqual(15, len(stats)) -except: - print("Milvus not installed, skipping tests") +except ImportError as err: + print(f"Skipping tests for MilvusMemory: {err}")