chore: Raise if QDRANT_URI is not set
Signed-off-by: Anush008 <anushshetty90@gmail.com>
This commit is contained in:
@@ -53,8 +53,9 @@ class QdrantClient(VectorDBBase):
|
|||||||
self.GRPC_PORT = QDRANT_GRPC_PORT
|
self.GRPC_PORT = QDRANT_GRPC_PORT
|
||||||
|
|
||||||
if not self.QDRANT_URI:
|
if not self.QDRANT_URI:
|
||||||
self.client = None
|
raise ValueError(
|
||||||
return
|
"QDRANT_URI is not set. Please configure it in the environment variables."
|
||||||
|
)
|
||||||
|
|
||||||
# Unified handling for either scheme
|
# Unified handling for either scheme
|
||||||
parsed = urlparse(self.QDRANT_URI)
|
parsed = urlparse(self.QDRANT_URI)
|
||||||
|
|||||||
Reference in New Issue
Block a user