From f0623c1b93a1e7b763b62e62aae4394f9eff59af Mon Sep 17 00:00:00 2001 From: Lionel Dricot Date: Fri, 18 Feb 2022 12:14:42 +0100 Subject: [PATCH] should fix a rare crash when fetching redirected urls --- offpunk.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/offpunk.py b/offpunk.py index 57ff3b1..cffeb9c 100755 --- a/offpunk.py +++ b/offpunk.py @@ -1096,6 +1096,9 @@ class GeminiItem(): return if not mime: mime = self.get_mime() + #we don’t even have a mime (so probably we don’t have a cache) + if not mime: + return mime_to_use = [] for m in _FORMAT_RENDERERS: if fnmatch.fnmatch(mime, m):