Commit 9f07d7d2 authored by Sebastien Robin's avatar Sebastien Robin

portal_components might not exist yet

parent 10da8881
......@@ -485,7 +485,11 @@ class ERP5Site(FolderMixIn, CMFSite, CacheCookieMixin):
# Make sure that reset is not performed when creating a new site
if not getattr(self, '_v_bootstrapping', False):
self.portal_components.resetOnceAtTransactionBoundary()
try:
self.portal_components.resetOnceAtTransactionBoundary()
except AttributeError:
# This should only happen before erp5_core is installed
pass
version_priority_list = property(getVersionPriorityList,
setVersionPriorityList)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment