From 7fd7ae97c6efc56e8d88e3bb2b9327aaf5a212e8 Mon Sep 17 00:00:00 2001 From: Cameron Lamb Date: Wed, 15 Sep 2021 11:04:04 +0100 Subject: [PATCH] Update wagtail_footnotes/blocks.py Co-authored-by: Dan Braghis --- wagtail_footnotes/blocks.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wagtail_footnotes/blocks.py b/wagtail_footnotes/blocks.py index 1d990bd..b8e4be1 100644 --- a/wagtail_footnotes/blocks.py +++ b/wagtail_footnotes/blocks.py @@ -30,7 +30,7 @@ def replace_footnote_tags(self, value, html, context=None): else: new_context = self.get_context(value, parent_context=dict(context)) - if "page" not in new_context or not isinstance(new_context["page"], Page): + if not isinstance(new_context.get("page"), Page): return html page = new_context["page"]