From 59dbf725a6eab30f2f562f9eabdfd28dfcc5418e Mon Sep 17 00:00:00 2001 From: Nick Sweeting Date: Tue, 4 Jul 2017 04:09:42 -0500 Subject: [PATCH] syntax error --- archive.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/archive.py b/archive.py index da53aff1..1914c7a5 100755 --- a/archive.py +++ b/archive.py @@ -339,7 +339,7 @@ def calculate_archive_url(link): else: # .html needs to be appended without_scheme = split_url[0].split('://', 1)[-1] - if url.endswith('/'): + if without_scheme.endswith('/'): return '#'.join([without_scheme + 'index.html', *split_url[1:]]) return '#'.join([without_scheme + '.html', *split_url[1:]])