From 2b872959ed50a3a0037fe7362bcbb6db485c01ef Mon Sep 17 00:00:00 2001 From: nicolargo Date: Tue, 12 Jul 2016 17:52:22 +0200 Subject: [PATCH] PermissionError/OSError when starting glances (issue #885) --- NEWS | 3 ++- glances/plugins/glances_network.py | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/NEWS b/NEWS index d45174e616..7f397a27d0 100644 --- a/NEWS +++ b/NEWS @@ -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) diff --git a/glances/plugins/glances_network.py b/glances/plugins/glances_network.py index 21ebcc5ac1..f2a1ef34de 100644 --- a/glances/plugins/glances_network.py +++ b/glances/plugins/glances_network.py @@ -94,7 +94,7 @@ def update(self): netstatus = {} try: netstatus = psutil.net_if_stats() - except AttributeError: + except: pass # Previous network interface stats are stored in the network_old variable