diff --git a/pinscrape/v2.py b/pinscrape/v2.py index 29c1616..9726b68 100644 --- a/pinscrape/v2.py +++ b/pinscrape/v2.py @@ -213,7 +213,7 @@ def search(self, query: str, page_size=26) -> list: logging.info(f"Total {len(image_urls)} image(s) found.") return image_urls except requests.exceptions.JSONDecodeError as jde: - self.errors.append(jde.args) + self.errors.append(response.text) return []