From eddf98747526825178bbf768c2979e28b34f9ef0 Mon Sep 17 00:00:00 2001 From: Ultrabug Date: Tue, 10 Feb 2015 19:38:02 +0100 Subject: make sure we have an empty config for every requested module on the order list --- py3status/__init__.py | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'py3status/__init__.py') diff --git a/py3status/__init__.py b/py3status/__init__.py index f72d008..65f3d2f 100755 --- a/py3status/__init__.py +++ b/py3status/__init__.py @@ -227,6 +227,10 @@ class I3status(Thread): config[section_name].append(value) line = '}' + # create an empty config for this module + if value not in config: + config[value] = {} + # detect internal modules to be loaded dynamically if not self.valid_config_param(value): config['py3_modules'].append(value) -- cgit v1.3