Commit b3595458 authored by Rafael Monnerat's avatar Rafael Monnerat

Sometimes section is not present

Sometimes on configuration product-config can be defined but promise-path and
site id isn't, like for example when some instance use DeadlockDebugger.
parent 7a2fedba
......@@ -660,7 +660,7 @@ class ERP5Site(FolderMixIn, CMFSite, CacheCookieMixin):
"""
config = getConfiguration()
if getattr(config, 'product_config', None) is not None:
parameter_dict = config.product_config.get(self.getPath())
parameter_dict = config.product_config.get(self.getPath(), {})
if 'promise_path' in parameter_dict:
promise_path = parameter_dict['promise_path']
import ConfigParser
......
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