Skip to content

Commit

Permalink
safeguard against empty/None values in default_page_uuid
Browse files Browse the repository at this point in the history
  • Loading branch information
erral committed Jan 10, 2024
1 parent c7ac9af commit 71d53fa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/collective/exportimport/import_other.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"])
Expand Down

0 comments on commit 71d53fa

Please sign in to comment.