From e2bc26352080e49b36fa89b40b19beb6f77c8d9d Mon Sep 17 00:00:00 2001 From: me Date: Fri, 31 Jan 2020 11:19:59 +0200 Subject: [PATCH] [fix] always return a list, even empty --- bumblebee/output.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bumblebee/output.py b/bumblebee/output.py index 64c1eb6..224e3f0 100644 --- a/bumblebee/output.py +++ b/bumblebee/output.py @@ -344,10 +344,10 @@ class WidgetDrawer(object): """ full_text = widget.full_text() if widget.get_module() and widget.get_module().hidden(): - return + return [] if widget.get_module() and widget.get_module().name in self._config.autohide(): if not any(state in widget.state() for state in ["warning", "critical"]): - return + return [] padding = self._theme.padding(widget) prefix = self._theme.prefix(widget, padding)