should fix a rare crash when fetching redirected urls

This commit is contained in:
Lionel Dricot 2022-02-18 12:14:42 +01:00
parent 7d91ee0eb9
commit f0623c1b93
1 changed files with 3 additions and 0 deletions

View File

@ -1096,6 +1096,9 @@ class GeminiItem():
return
if not mime:
mime = self.get_mime()
#we dont even have a mime (so probably we dont have a cache)
if not mime:
return
mime_to_use = []
for m in _FORMAT_RENDERERS:
if fnmatch.fnmatch(mime, m):