From 0b6a1307790e0793917bc2781e4873aa9dd67225 Mon Sep 17 00:00:00 2001 From: Kelly Brazil Date: Tue, 4 Jan 2022 16:43:38 -0800 Subject: [PATCH] ignore blank lines --- jc/parsers/stat_s.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/jc/parsers/stat_s.py b/jc/parsers/stat_s.py index 25816376..66b9d739 100644 --- a/jc/parsers/stat_s.py +++ b/jc/parsers/stat_s.py @@ -145,6 +145,10 @@ def parse(data, raw=False, quiet=False, ignore_exceptions=False): linecomplete = False line = line.rstrip() + # ignore blank lines + if line == '': + continue + # linux output if line.startswith(' File: '): os_type = 'linux'