No need to catch MissingSchema actually

This commit is contained in:
Lucas Verney 2018-07-16 14:52:06 +02:00
parent 4df1f1d2a1
commit 0d3f984545

View File

@ -120,7 +120,7 @@ class ImageCache(MemoryCache):
if self.storage_dir: if self.storage_dir:
image.save(filepath, format=image.format) image.save(filepath, format=image.format)
return image return image
except (requests.HTTPError, requests.exceptions.MissingSchema, IOError): except (requests.HTTPError, IOError):
return None return None
def __init__(self, max_items=200, storage_dir=None): def __init__(self, max_items=200, storage_dir=None):