From 542d235c1a647e32bec1a21ebf35854a90801511 Mon Sep 17 00:00:00 2001 From: Tobias Witek Date: Sat, 20 Jun 2020 13:51:26 +0200 Subject: [PATCH] [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 --- bumblebee_status/modules/contrib/traffic.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/bumblebee_status/modules/contrib/traffic.py b/bumblebee_status/modules/contrib/traffic.py index c9f7843..c8b87db 100644 --- a/bumblebee_status/modules/contrib/traffic.py +++ b/bumblebee_status/modules/contrib/traffic.py @@ -18,6 +18,7 @@ contributed by `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)