Skip to content

Commit

Permalink
fix: removed response text
Browse files Browse the repository at this point in the history
  • Loading branch information
iamatulsingh committed Oct 28, 2024
1 parent b5ffb34 commit bb19ff3
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions pinscrape/v2.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 []

Expand Down

0 comments on commit bb19ff3

Please sign in to comment.