diff --git a/llama-index-integrations/vector_stores/llama-index-vector-stores-qdrant/llama_index/vector_stores/qdrant/base.py b/llama-index-integrations/vector_stores/llama-index-vector-stores-qdrant/llama_index/vector_stores/qdrant/base.py index 5f2100f3b6f7b..1ef137ae3b874 100644 --- a/llama-index-integrations/vector_stores/llama-index-vector-stores-qdrant/llama_index/vector_stores/qdrant/base.py +++ b/llama-index-integrations/vector_stores/llama-index-vector-stores-qdrant/llama_index/vector_stores/qdrant/base.py @@ -370,7 +370,7 @@ def _create_collection(self, collection_name: str, vector_size: int) -> None: distance=rest.Distance.COSINE, ), ) - except (ValueError, UnexpectedResponse) as exc: + except (RpcError, ValueError, UnexpectedResponse) as exc: if "already exists" not in str(exc): raise exc # noqa: TRY201 logger.warning( @@ -408,7 +408,7 @@ async def _acreate_collection(self, collection_name: str, vector_size: int) -> N distance=rest.Distance.COSINE, ), ) - except (ValueError, UnexpectedResponse) as exc: + except (RpcError, ValueError, UnexpectedResponse) as exc: if "already exists" not in str(exc): raise exc # noqa: TRY201 logger.warning(