PermissionError/OSError when starting glances (issue #885)

This commit is contained in:
nicolargo 2016-07-12 17:52:22 +02:00
parent b5b358aecc
commit 2b872959ed
2 changed files with 3 additions and 2 deletions

3
NEWS
View File

@ -37,7 +37,8 @@ Bugs corrected:
* Idle process is back on FreeBSD and Windows (issue #844)
* On Windows, Glances try to display unexisting Load stats (issue #871)
* Check CPU info (issue #881)
* Unicode error on processlist on Windows server 2008 (french) (issue #886)
* Unicode error on processlist on Windows server 2008 (french) (issue #886)
* PermissionError/OSError when starting glances (issue #885)
* Top 3 processes are back in the alert summary
Code quality follow up: from 5.93 to 6.24 (source: https://scrutinizer-ci.com/g/nicolargo/glances)

View File

@ -94,7 +94,7 @@ class Plugin(GlancesPlugin):
netstatus = {}
try:
netstatus = psutil.net_if_stats()
except AttributeError:
except:
pass
# Previous network interface stats are stored in the network_old variable