From 55b272e41259ddc835cf4eb513fb67e7b2cf1573 Mon Sep 17 00:00:00 2001 From: Kelly Brazil Date: Thu, 6 Jan 2022 11:13:14 -0800 Subject: [PATCH] tighten stat data detection --- jc/parsers/stat_s.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jc/parsers/stat_s.py b/jc/parsers/stat_s.py index 14343cc2..c1fa8f37 100644 --- a/jc/parsers/stat_s.py +++ b/jc/parsers/stat_s.py @@ -242,7 +242,7 @@ def parse(data, raw=False, quiet=False, ignore_exceptions=False): if os_type != 'linux': value = shlex.split(line) - if not value[1].isdigit(): + if not value[0].isdigit() or not value[1].isdigit(): raise ParseError('Not stat data') output_line = {