Skip to content

Commit

Permalink
Merge pull request #234 from collective/non-in-default-pages
Browse files Browse the repository at this point in the history
safeguard against empty/None values in default_page_uuid
  • Loading branch information
pbauer authored Jan 10, 2024
2 parents c7ac9af + 71d53fa commit b333ee3
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 b333ee3

Please sign in to comment.