diff --git a/NEWS b/NEWS index 43339cc1..7779a2e4 100644 --- a/NEWS +++ b/NEWS @@ -23,6 +23,7 @@ Bugs corrected: * Action on port/web plugins is not working #1358 * Support for monochrome (serial) terminals e.g. vt220 #1362 * Some field name are incorrect in CSV export #1372 + * TypeError on opening (Wifi plugin) #1373 Others: diff --git a/glances/plugins/glances_wifi.py b/glances/plugins/glances_wifi.py index 9963668c..130a3a42 100644 --- a/glances/plugins/glances_wifi.py +++ b/glances/plugins/glances_wifi.py @@ -139,7 +139,8 @@ class Plugin(GlancesPlugin): ret = 'WARNING' elif value <= self.get_limit('careful', stat_name=self.plugin_name): ret = 'CAREFUL' - except KeyError: + except (TypeError, KeyError) as e: + # Catch TypeError for issue1373 ret = 'DEFAULT' return ret