From 94dacc49c74319047563ed8ba547244e72211bcc Mon Sep 17 00:00:00 2001 From: DanielBatteryStapler Date: Tue, 15 Aug 2023 23:49:54 -0400 Subject: [PATCH] Fix archive_org icon "exists" --- archivebox/index/html.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/archivebox/index/html.py b/archivebox/index/html.py index 66e26fab..c0229674 100644 --- a/archivebox/index/html.py +++ b/archivebox/index/html.py @@ -177,7 +177,7 @@ def snapshot_icons(snapshot) -> str: # The check for archive_org is different, so it has to be handled separately # get from db (faster) - exists = extractor_outputs[extractor] and extractor_outputs[extractor].status == 'succeeded' and extractor_outputs[extractor].output + exists = extractor in extractor_outputs and extractor_outputs[extractor] and extractor_outputs[extractor].status == 'succeeded' and extractor_outputs[extractor].output # get from filesystem (slower) # target_path = Path(path) / "archive.org.txt" # exists = target_path.exists()