Commit d930fd56 authored by Rafael Monnerat's avatar Rafael Monnerat Committed by Sebastien Robin

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 31596611
...@@ -660,7 +660,7 @@ class ERP5Site(FolderMixIn, CMFSite, CacheCookieMixin): ...@@ -660,7 +660,7 @@ class ERP5Site(FolderMixIn, CMFSite, CacheCookieMixin):
""" """
config = getConfiguration() config = getConfiguration()
if getattr(config, 'product_config', None) is not None: 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: if 'promise_path' in parameter_dict:
promise_path = parameter_dict['promise_path'] promise_path = parameter_dict['promise_path']
import ConfigParser 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