No need to catch MissingSchema actually
This commit is contained in:
parent
4df1f1d2a1
commit
0d3f984545
@ -120,7 +120,7 @@ class ImageCache(MemoryCache):
|
||||
if self.storage_dir:
|
||||
image.save(filepath, format=image.format)
|
||||
return image
|
||||
except (requests.HTTPError, requests.exceptions.MissingSchema, IOError):
|
||||
except (requests.HTTPError, IOError):
|
||||
return None
|
||||
|
||||
def __init__(self, max_items=200, storage_dir=None):
|
||||
|
Loading…
Reference in New Issue
Block a user