From f9c6e0f65084b12fdddea141df9b2704ca6712bc Mon Sep 17 00:00:00 2001
From: James Briggs <james.briggs@hotmail.com>
Date: Fri, 23 Aug 2024 16:29:46 +0200
Subject: [PATCH] chore: lint

---
 semantic_router/index/pinecone.py | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/semantic_router/index/pinecone.py b/semantic_router/index/pinecone.py
index 50469baf..327d277b 100644
--- a/semantic_router/index/pinecone.py
+++ b/semantic_router/index/pinecone.py
@@ -628,6 +628,7 @@ class PineconeIndex(BaseIndex):
             ) as response:
                 if response.status != 200:
                     error_text = await response.text()
+                    logger.error(f"Error fetching vectors: {error_text}")
                     break
 
                 response_data = await response.json(content_type=None)
@@ -667,11 +668,15 @@ class PineconeIndex(BaseIndex):
         ) as response:
             if response.status != 200:
                 error_text = await response.text()
+                logger.error(f"Error fetching metadata: {error_text}")
                 return {}
 
             try:
                 response_data = await response.json(content_type=None)
             except Exception as e:
+                logger.warning(
+                    f"No metadata found for vector {vector_id}: {e}"
+                )
                 return {}
 
             return (
-- 
GitLab