From 8c721dc400e8e9f0ab836d2f380644055a1004cc Mon Sep 17 00:00:00 2001 From: Roman Date: Thu, 12 Oct 2023 11:58:40 +0200 Subject: [PATCH] Use python syntax --- .../plone/ioprenoto/restapi/services/bookable_list/get.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/design/plone/ioprenoto/restapi/services/bookable_list/get.py b/src/design/plone/ioprenoto/restapi/services/bookable_list/get.py index 959389a..b63fc67 100644 --- a/src/design/plone/ioprenoto/restapi/services/bookable_list/get.py +++ b/src/design/plone/ioprenoto/restapi/services/bookable_list/get.py @@ -164,7 +164,7 @@ def reply(self): def get_uo_contact_info(self, uo): result = [] - for contact in getattr(uo, "contact_info", None) || []: + for contact in getattr(uo, "contact_info", None) or []: if contact.isBroken(): logger.error( "Broken relation found in <{UID}>.contact_info".format(UID=uo.UID())