Skip to content

Commit

Permalink
Update wagtail_footnotes/blocks.py
Browse files Browse the repository at this point in the history
Co-authored-by: Dan Braghis <[email protected]>
  • Loading branch information
Cameron Lamb and zerolab authored Sep 15, 2021
1 parent d1db7e5 commit 7fd7ae9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion wagtail_footnotes/blocks.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"]
Expand Down

0 comments on commit 7fd7ae9

Please sign in to comment.