mirror of https://github.com/nicolargo/glances.git
TypeError on opening (Wifi plugin) #1373
This commit is contained in:
parent
c76a5f0537
commit
229710d60e
1
NEWS
1
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:
|
||||
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue