diff options
| -rwxr-xr-x | py3status/__init__.py | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/py3status/__init__.py b/py3status/__init__.py index 3e044f9..d98b83d 100755 --- a/py3status/__init__.py +++ b/py3status/__init__.py @@ -412,13 +412,13 @@ class I3status(Thread): the user in his i3status.conf. """ ordered = [] - for module in self.config['order']: - if module in py3_modules: - for method in py3_modules[module].methods.values(): + for module_name in self.config['order']: + if module_name in py3_modules: + for method in py3_modules[module_name].methods.values(): ordered.append(method['last_output']) else: - if self.config.get(module, {}).get('response'): - ordered.append(self.config[module]['response']) + if self.config.get(module_name, {}).get('response'): + ordered.append(self.config[module_name]['response']) return ordered @staticmethod |
