From bb19ff35ea4fc756e48b03c7e9bbaf07a00f4545 Mon Sep 17 00:00:00 2001 From: iamatulsingh Date: Mon, 28 Oct 2024 15:05:28 +0100 Subject: [PATCH] fix: removed response text --- pinscrape/v2.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/pinscrape/v2.py b/pinscrape/v2.py index 2135f8e..6426bd4 100644 --- a/pinscrape/v2.py +++ b/pinscrape/v2.py @@ -218,8 +218,7 @@ def search(self, query: str, page_size=26) -> list: self.client_context = json_data['client_context'] logging.info(f"Total {len(image_urls)} image(s) found.") return image_urls - except requests.exceptions.JSONDecodeError as jde: - self.errors.append(response.text) + except requests.exceptions.JSONDecodeError: self.errors.append(msg) return []