Skip to content

Commit

Permalink
Merge pull request #121 from arrrlo/hotfix/image-fetch-error-handling
Browse files Browse the repository at this point in the history
hotfix/image-fetch-error-handling
  • Loading branch information
arrrlo authored Dec 9, 2021
2 parents 440b224 + a553c35 commit a7ebc72
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# Changelog

## 1.3.10

### Fixed in 1.3.10

- Improved error handling when trying to fetch images

## 1.3.9

### Fixed in 1.3.9
Expand Down
8 changes: 1 addition & 7 deletions google_images_search/google_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -104,13 +104,7 @@ def search(self, params, cache_discovery=False):
self._fetch_resize_save.set_chunk_size(
image['link'], content_length
)
except requests.exceptions.ConnectTimeout:
continue
except requests.exceptions.ReadTimeout:
continue
except requests.exceptions.SSLError:
continue
except requests.exceptions.InvalidSchema:
except requests.exceptions.RequestException:
continue
yield image['link']

Expand Down
2 changes: 1 addition & 1 deletion google_images_search/meta.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = '1.3.9'
__version__ = '1.3.10'

0 comments on commit a7ebc72

Please sign in to comment.