From a160e6bf2072fe65dab0e9d4eb1f3c61b1ae2a9b Mon Sep 17 00:00:00 2001 From: Nick Sweeting Date: Wed, 29 Jul 2020 23:54:41 -0400 Subject: [PATCH] fix None canon output to be emptystring --- archivebox/core/admin.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/archivebox/core/admin.py b/archivebox/core/admin.py index e6646c7b..4578cc11 100644 --- a/archivebox/core/admin.py +++ b/archivebox/core/admin.py @@ -97,7 +97,7 @@ class SnapshotAdmin(admin.ModelAdmin): canon = link.canonical_outputs() out_dir = Path(link.link_dir) - link_tuple = lambda link, method: (link.archive_path, canon[method], canon[method] and (out_dir / canon[method]).exists()) + link_tuple = lambda link, method: (link.archive_path, canon[method] or '', canon[method] and (out_dir / (canon[method] or 'notdone')).exists()) return format_html( ''