From 71d53fa2c67b7211f10cf8032299ef0db92e78d1 Mon Sep 17 00:00:00 2001 From: Mikel Larreategi Date: Wed, 10 Jan 2024 09:51:51 +0100 Subject: [PATCH] safeguard against empty/None values in default_page_uuid --- src/collective/exportimport/import_other.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/collective/exportimport/import_other.py b/src/collective/exportimport/import_other.py index 81182195..b24672ac 100644 --- a/src/collective/exportimport/import_other.py +++ b/src/collective/exportimport/import_other.py @@ -535,7 +535,7 @@ def import_default_pages(self, data): obj = api.portal.get() else: continue - if "default_page_uuid" in item: + if "default_page_uuid" in item and item.get("default_page_uuid", None): default_page_obj = api.content.get(UID=item["default_page_uuid"]) if not default_page_obj: logger.info("Default page missing: %s", item["default_page_uuid"])