From 2837a785024fd8dd6ebc22fd1091d57f4d192e34 Mon Sep 17 00:00:00 2001 From: tobi-wan-kenobi Date: Sat, 11 Apr 2020 13:21:41 +0200 Subject: [PATCH] [modules/error] Minor refactoring --- modules/core/error.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/core/error.py b/modules/core/error.py index 6fde157..e551099 100644 --- a/modules/core/error.py +++ b/modules/core/error.py @@ -22,9 +22,9 @@ class Module(core.module.Module): def __set_error(self, error='n/a', state='critical'): self.__error = error self.__state = state - self.update() def state(self, widget): if self.__error: return [self.__state] + return [] # vim: tabstop=8 expandtab shiftwidth=4 softtabstop=4