[modules/traffic] ignore all errors during update

to investigate whether the assumption that a stray exception causes
issues is correct, temporarily catch all errors.

see #655
This commit is contained in:
Tobias Witek 2020-06-20 13:51:26 +02:00
parent 3beb86bb38
commit 542d235c1a

View file

@ -18,6 +18,7 @@ contributed by `meain <https://github.com/meain>`_ - many thanks!
import re
import time
import psutil
import logging
import netifaces
import core.module
@ -68,7 +69,10 @@ class Module(core.module.Module):
return self._status
def update(self):
try:
self._update_widgets()
except Exception as e:
logging.exception(e)
def create_widget(self, name, txt=None, attributes={}):
widget = self.add_widget(name=name, full_text=txt)