From 5c7443e38281f9064c3961f675a228024947acbf Mon Sep 17 00:00:00 2001 From: Bryan Newbold Date: Fri, 8 Apr 2022 16:51:09 -0700 Subject: web: another release/webcapture jinja2 check --- python/fatcat_web/templates/release_view.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'python') diff --git a/python/fatcat_web/templates/release_view.html b/python/fatcat_web/templates/release_view.html index 5e64d7e0..7178f9f3 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[0].archive_urls != [] and entity.webcaptures[0].archive_urls[0].rel == "wayback" %} +{% 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" %} Visit Web Archive -- cgit v1.2.3