diff --git a/core/loaders/utils.py b/core/loaders/utils.py index a5f746c2..cf95afbd 100644 --- a/core/loaders/utils.py +++ b/core/loaders/utils.py @@ -447,9 +447,9 @@ class ContentTyper(object): def content_type(self, url): try: r = requests.head(url) - return r.headers.get('content-type') + return r.headers.get('content-type', '') except: - return None + return '' def calc_type(self, url): delay = 1