From 4980890ac4a796c9c2628c3802ae0193bd936417 Mon Sep 17 00:00:00 2001 From: Lionel Dricot Date: Mon, 31 Jan 2022 11:54:17 +0100 Subject: [PATCH] fixing a crash --- offpunk.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/offpunk.py b/offpunk.py index 6ec6ff9..6d48a02 100755 --- a/offpunk.py +++ b/offpunk.py @@ -1477,7 +1477,7 @@ you'll be able to transparently follow links to Gopherspace!""") def _update_history(self, gi): # We don’t 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")