Avoid crach on olds kernels (issue #554)

This commit is contained in:
nicolargo 2015-04-01 22:00:13 +02:00
parent 71ffcef3d0
commit 3a7856831c

View File

@ -402,7 +402,7 @@ class GlancesProcesses(object):
# Get the process IO counters
proc_io = proc.io_counters()
io_new = [proc_io.read_bytes, proc_io.write_bytes]
except (psutil.AccessDenied, psutil.NoSuchProcess):
except (psutil.AccessDenied, psutil.NoSuchProcess, NotImplementedError):
# Access denied to process IO (no root account)
# NoSuchProcess (process die between first and second grab)
# Put 0 in all values (for sort) and io_tag = 0 (for