Skip to content

Commit

Permalink
flaked (#256)
Browse files Browse the repository at this point in the history
  • Loading branch information
daniele-andreotti authored Apr 18, 2024
1 parent 2be43a6 commit 103b1d4
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
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
6.2.6 (unreleased)
------------------

- Nothing changed yet.
- improved check on relation.
[daniele]


6.2.5 (2024-04-17)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,10 @@ def related_contents(self, field, portal_type):
)

for rel in relations:
obj = intids.queryObject(rel.from_id)
try:
obj = intids.queryObject(rel.from_id)
except: # noqa
continue
if (
obj is not None
and checkPermission("zope2.View", obj)
Expand Down

0 comments on commit 103b1d4

Please sign in to comment.