From ebd92125128838e0933f538b03a8098a2c7794ba Mon Sep 17 00:00:00 2001 From: Bryan Newbold Date: Tue, 26 Apr 2022 15:53:55 -0700 Subject: html: yet another webcapture template check bugfix --- python/fatcat_web/templates/release_view.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python/fatcat_web/templates/release_view.html b/python/fatcat_web/templates/release_view.html index 7178f9f3..53ac3703 100644 --- a/python/fatcat_web/templates/release_view.html +++ b/python/fatcat_web/templates/release_view.html @@ -214,7 +214,7 @@ accessible version. Read Archived PDF -{% elif entity.state == 'active' and entity.webcaptures and entity.webcaptures != [] and entity.webcaptures[0].archive_urls != [] and entity.webcaptures[0].archive_urls[0].rel == "wayback" %} +{% elif entity.state == 'active' and entity.webcaptures != None and entity.webcaptures != [] and entity.webcaptures[0].archive_urls != [] and entity.webcaptures[0].archive_urls[0].rel == "wayback" %} Visit Web Archive -- cgit v1.2.3