[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:
parent
3beb86bb38
commit
542d235c1a
1 changed files with 5 additions and 1 deletions
|
@ -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):
|
||||
self._update_widgets()
|
||||
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)
|
||||
|
|
Loading…
Reference in a new issue