summaryrefslogtreecommitdiffstats
path: root/py3status
diff options
context:
space:
mode:
authorUltrabug <ultrabug@gentoo.org>2015-02-13 18:22:45 +0100
committerUltrabug <ultrabug@gentoo.org>2015-02-13 18:22:45 +0100
commit82da45c94819be9bbcb81a0a8c21c04086102602 (patch)
tree9631144d0df689ecf2bed7c4b4ccd23c7fb135e1 /py3status
parent2b9383221ebfc1c7c74fad118db332fbb17fcf98 (diff)
check for modules responses when generating the output
Diffstat (limited to 'py3status')
-rwxr-xr-xpy3status/__init__.py3
1 files changed, 2 insertions, 1 deletions
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