1
0
mirror of https://github.com/kellyjonbrazil/jc.git synced 2025-06-23 00:29:59 +02:00

tighten stat data detection

This commit is contained in:
Kelly Brazil
2022-01-06 11:13:14 -08:00
parent 94f62a9bf3
commit 55b272e412

View File

@ -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 = {