From a196e5a7f4c0cb694597a5c354ec12e6b262e570 Mon Sep 17 00:00:00 2001 From: Paul Wise Date: Fri, 25 May 2018 15:20:44 +0800 Subject: [PATCH 05/11] Actually skip invalid lines in /proc/*/status Actually skip invalid lines in /proc/*/status Fixes: commit 0392b205b5c3973a326721c2e9f97f0fa2eefa82 --- iotop/data.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/iotop/data.py b/iotop/data.py index 62626c3..8378e51 100644 --- a/iotop/data.py +++ b/iotop/data.py @@ -199,7 +199,7 @@ def parse_proc_pid_status(pid): # Ignore lines that are not formatted correctly as # some downstream kernels may have weird lines and # the needed fields are probably formatted correctly. - pass + continue result_dict[key] = value.strip() except IOError: pass # No such process -- 1.8.3.1