Add catch for Wifi cell

pull/1039/merge
Nicolargo 2017-01-26 09:57:26 +01:00
parent 80c79402a8
commit 3e0947fd13
2 changed files with 7 additions and 0 deletions

View File

@ -128,6 +128,9 @@ on Debian/Ubuntu you need to install first the *python-dev* package.
For Fedora/CentOS/RHEL install first *python-devel* package. For Windows,
just install psutil from the binary installation file.
*Note 2 (for the Wifi plugin)*: If you want to use the Wifi plugin, you need
to install the *wireless-tools* package on your system.
You can also install the following libraries in order to use optional
features (like the Web interface, exports modules, sensors...):

View File

@ -103,6 +103,10 @@ class Plugin(GlancesPlugin):
except InterfaceError:
# Not a Wifi interface
pass
except Exception as e:
# Other error
logger.debug("WIFI plugin: Can not grab cellule stats ({})".format(e))
pass
else:
for wifi_cell in wifi_cells:
hotspot = {