Skip to content

Commit

Permalink
updated CHANGES + added check (#95)
Browse files Browse the repository at this point in the history
  • Loading branch information
eikichi18 committed Mar 6, 2024
1 parent 74afe0b commit 1d1d9bb
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 2 additions & 1 deletion CHANGES.rst
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@ Changelog
5.4.6 (unreleased)
------------------

- Nothing changed yet.
- Added check if value is a dict before using get method.
[eikichi18]


5.4.5 (2024-03-05)
Expand Down
2 changes: 2 additions & 0 deletions src/redturtle/volto/adapters/blocks_linkintegrity.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,8 @@ def retrieveLinks(self):
links |= set(extractLinks(value.raw))
elif isinstance(field, BlocksField):
value = field.get(self.context)
if not isinstance(value, dict):
continue
blocks = value.get("blocks", {})
if not blocks:
continue
Expand Down

0 comments on commit 1d1d9bb

Please sign in to comment.