[core/module] For errors, always set update interval to 1

This commit is contained in:
tobi-wan-kenobi 2020-04-13 09:43:45 +02:00
parent bfc3832428
commit b87dcad9c2

View file

@ -56,6 +56,7 @@ class Module(core.input.Object):
try: try:
self.update() self.update()
except Exception as e: except Exception as e:
self.set('interval', 1)
module = Error(config=self.__config, module='error', error=str(e)) module = Error(config=self.__config, module='error', error=str(e))
self.__widgets = [module.widget()] self.__widgets = [module.widget()]
self.update = module.update self.update = module.update