diff --git a/CHANGES.rst b/CHANGES.rst index 80127b71..c35cf241 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -4,7 +4,8 @@ Changelog 6.2.6 (unreleased) ------------------ -- Nothing changed yet. +- improved check on relation. + [daniele] 6.2.5 (2024-04-17) diff --git a/src/design/plone/contenttypes/restapi/serializers/punto_di_contatto.py b/src/design/plone/contenttypes/restapi/serializers/punto_di_contatto.py index 95e2f71a..48f5499f 100644 --- a/src/design/plone/contenttypes/restapi/serializers/punto_di_contatto.py +++ b/src/design/plone/contenttypes/restapi/serializers/punto_di_contatto.py @@ -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)