gi might be None. Strange but it seems to happen in --sync.

This commit is contained in:
Lionel Dricot 2022-01-10 09:45:21 +01:00
parent d92a6db6b6
commit 1110bf5e0c

View File

@ -611,7 +611,7 @@ you'll be able to transparently follow links to Gopherspace!""")
# Pass file to handler, unless we were asked not to
#SPECIFICGEMINI :default handler should be provided by the GI.
if handle :
if gi and handle :
if gi.get_mime() == "text/gemini":
self._handle_gemtext(gi, display=not self.sync_only)