From 51f5b35a1e4bb8c9515e6840e65d022c6164b9ae Mon Sep 17 00:00:00 2001 From: Lionel Dricot Date: Tue, 12 Apr 2022 15:03:26 +0200 Subject: [PATCH] stupid bug in previous commit --- offpunk.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/offpunk.py b/offpunk.py index fef4dd9..a9aaad4 100755 --- a/offpunk.py +++ b/offpunk.py @@ -3648,7 +3648,7 @@ archives, which is a special historical list limited in size. It is similar to ` # we separate components of the line # to ensure we identify a complete URL, not a part of it splitted = l.split() - if url not in splitted and len(splitted) > 0: + if url not in splitted and len(splitted) > 1: current = splitted[1].split("##offpunk_mode=")[0] #sometimes, we must remove the ending "/" if url == current: