Commit 7b21a960 authored by Łukasz Nowak's avatar Łukasz Nowak

Survive in case of no product_config support.

parent a50f2860
...@@ -34,17 +34,18 @@ except ImportError: ...@@ -34,17 +34,18 @@ except ImportError:
LOG('DeadlockDebugger', ERROR, "Incorrectly installed threadframe module") LOG('DeadlockDebugger', ERROR, "Incorrectly installed threadframe module")
else: else:
config = getConfiguration() config = getConfiguration()
deadlockdebugger = config.product_config.get('deadlockdebugger') if getattr(config, 'product_config', None) is not None:
dump_url = '' deadlockdebugger = config.product_config.get('deadlockdebugger')
secret = '' dump_url = ''
if deadlockdebugger is None: secret = ''
LOG('DeadlockDebugger', ERROR, 'Missing configuration statement ' if deadlockdebugger is None:
'<product-config deadlockdebugger>, not activated') LOG('DeadlockDebugger', ERROR, 'Missing configuration statement '
else: '<product-config deadlockdebugger>, not activated')
if not 'dump_url' in deadlockdebugger:
LOG('DeadlockDebugger', ERROR, 'Please configure dump_url and '
'optionally secret in <product-config deadlockdebugger>, not '
'activated')
else: else:
import dumper if not 'dump_url' in deadlockdebugger:
LOG('DeadlockDebugger', INFO, "Installed") LOG('DeadlockDebugger', ERROR, 'Please configure dump_url and '
'optionally secret in <product-config deadlockdebugger>, not '
'activated')
else:
import dumper
LOG('DeadlockDebugger', INFO, "Installed")
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