TypeError on opening (Wifi plugin) #1373

This commit is contained in:
nicolargo 2018-12-18 21:30:36 +01:00
parent c76a5f0537
commit 229710d60e
2 changed files with 3 additions and 1 deletions

1
NEWS
View File

@ -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:

View File

@ -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