diff --git a/CHANGELOG.md b/CHANGELOG.md index 4059c1b..10a55cc 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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 diff --git a/google_images_search/google_api.py b/google_images_search/google_api.py index 360fa06..15de90c 100644 --- a/google_images_search/google_api.py +++ b/google_images_search/google_api.py @@ -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'] diff --git a/google_images_search/meta.py b/google_images_search/meta.py index 9e86e88..f1a3fb0 100644 --- a/google_images_search/meta.py +++ b/google_images_search/meta.py @@ -1 +1 @@ -__version__ = '1.3.9' +__version__ = '1.3.10'