From 9f8c3f448f22acea089576405a8945b09f7cb081 Mon Sep 17 00:00:00 2001 From: DanielJanicek Date: Wed, 25 Mar 2026 08:00:07 -0700 Subject: [PATCH] use get() instead of direct dict access --- weaviate/collections/classes/config.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/weaviate/collections/classes/config.py b/weaviate/collections/classes/config.py index 699a3c2a8..4795e12ce 100644 --- a/weaviate/collections/classes/config.py +++ b/weaviate/collections/classes/config.py @@ -2325,8 +2325,8 @@ def inject_vector_config_none( ) -> Union[_VectorConfigCreate, List[_VectorConfigCreate], None]: if ( v is None - and info.data["vectorizerConfig"] is None - and info.data["vectorIndexConfig"] is None + and info.data.get("vectorizerConfig") is None + and info.data.get("vectorIndexConfig") is None ): return _VectorConfigCreate( name="default",