From 0d3f9845453edc3ecccc4e51a4e2851628a19a49 Mon Sep 17 00:00:00 2001 From: "Phyks (Lucas Verney)" Date: Mon, 16 Jul 2018 14:52:06 +0200 Subject: [PATCH] No need to catch MissingSchema actually --- flatisfy/filters/cache.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/flatisfy/filters/cache.py b/flatisfy/filters/cache.py index 9f28143..2b60d65 100644 --- a/flatisfy/filters/cache.py +++ b/flatisfy/filters/cache.py @@ -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):