[modules/sensors2] Fix runtime errors

This commit is contained in:
tobi-wan-kenobi 2020-03-28 13:44:45 +01:00
parent 908ef67109
commit d5820160dc
4 changed files with 6 additions and 8 deletions

View file

@ -93,7 +93,7 @@ class i3(object):
def widgets(self, module):
widgets = []
for widget in module.widgets():
if self._config.autohide(widget.module().name()):
if widget.module() and self._config.autohide(widget.module().name()):
if not any(state in widget.state() for state in [ 'warning', 'critical']):
continue
widgets += self.__separator(module, widget)