Skip to content

Commit

Permalink
fix: added response message to print when json failed
Browse files Browse the repository at this point in the history
  • Loading branch information
iamatulsingh committed Oct 28, 2024
1 parent f3358d1 commit e281e21
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pinscrape/v2.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 []


Expand Down

0 comments on commit e281e21

Please sign in to comment.