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:
@ -242,7 +242,7 @@ def parse(data, raw=False, quiet=False, ignore_exceptions=False):
|
|||||||
if os_type != 'linux':
|
if os_type != 'linux':
|
||||||
value = shlex.split(line)
|
value = shlex.split(line)
|
||||||
|
|
||||||
if not value[1].isdigit():
|
if not value[0].isdigit() or not value[1].isdigit():
|
||||||
raise ParseError('Not stat data')
|
raise ParseError('Not stat data')
|
||||||
|
|
||||||
output_line = {
|
output_line = {
|
||||||
|
Reference in New Issue
Block a user