Skip to content

Commit 7fd7ae9

Browse files
Cameron Lambzerolab
andauthored
Update wagtail_footnotes/blocks.py
Co-authored-by: Dan Braghis <[email protected]>
1 parent d1db7e5 commit 7fd7ae9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

wagtail_footnotes/blocks.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ def replace_footnote_tags(self, value, html, context=None):
3030
else:
3131
new_context = self.get_context(value, parent_context=dict(context))
3232

33-
if "page" not in new_context or not isinstance(new_context["page"], Page):
33+
if not isinstance(new_context.get("page"), Page):
3434
return html
3535

3636
page = new_context["page"]

0 commit comments

Comments
 (0)