fixing a crash

This commit is contained in:
Lionel Dricot 2022-01-31 11:54:17 +01:00
parent 2dbe7de21c
commit 4980890ac4
1 changed files with 1 additions and 1 deletions

View File

@ -1477,7 +1477,7 @@ you'll be able to transparently follow links to Gopherspace!""")
def _update_history(self, gi):
# We dont add lists to history
if os.path.join(_DATA_DIR,"lists") in gi.url:
if not gi or os.path.join(_DATA_DIR,"lists") in gi.url:
return
histlist = self.get_list("history")
links = self.list_get_links("history")