Skip to content

Commit bb19ff3

Browse files
committed
fix: removed response text
1 parent b5ffb34 commit bb19ff3

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

pinscrape/v2.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -218,8 +218,7 @@ def search(self, query: str, page_size=26) -> list:
218218
self.client_context = json_data['client_context']
219219
logging.info(f"Total {len(image_urls)} image(s) found.")
220220
return image_urls
221-
except requests.exceptions.JSONDecodeError as jde:
222-
self.errors.append(response.text)
221+
except requests.exceptions.JSONDecodeError:
223222
self.errors.append(msg)
224223
return []
225224

0 commit comments

Comments
 (0)