Commit f838e0df authored by Nicolas Dumazet's avatar Nicolas Dumazet

complain even less when initializing caches if some properties are missing.

Just forget about it, and retry later.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@42898 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 358c5845
......@@ -57,7 +57,11 @@ def initializePortalCachingProperties(self):
# we set is_cache_initialized right now to prevent infinite loops
is_cache_initialized = 1
## update cache structure from portal_caches
portal_caches.updateCache()
try:
portal_caches.updateCache()
except AttributeError:
is_cache_initialized = 0
return
# we mark the cache as ready after initialization, because initialization
# itself will cause cache misses that we want to ignore
is_cache_ready = 1
......
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