From 82da45c94819be9bbcb81a0a8c21c04086102602 Mon Sep 17 00:00:00 2001 From: Ultrabug Date: Fri, 13 Feb 2015 18:22:45 +0100 Subject: check for modules responses when generating the output --- py3status/__init__.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/py3status/__init__.py b/py3status/__init__.py index c90463f..df0cf4a 100755 --- a/py3status/__init__.py +++ b/py3status/__init__.py @@ -415,7 +415,8 @@ class I3status(Thread): for method in py3_modules[module].methods.values(): ordered.append(method['last_output']) else: - ordered.append(self.config[module]['response']) + if self.config.get(module, {}).get('response'): + ordered.append(self.config[module]['response']) return ordered @staticmethod -- cgit v1.3