mirror of
https://github.com/kellyjonbrazil/jc.git
synced 2025-07-15 01:24:29 +02:00
skip blank lines and warning lines
This commit is contained in:
@ -473,6 +473,14 @@ def parse(data, raw=False, quiet=False):
|
||||
output_line = {}
|
||||
|
||||
try:
|
||||
# skip blank lines
|
||||
if line.strip() == '':
|
||||
continue
|
||||
|
||||
# skip warning lines
|
||||
if line.startswith('WARNING: '):
|
||||
continue
|
||||
|
||||
# check for PATTERN
|
||||
if line.startswith('PATTERN: '):
|
||||
s.pattern = line.strip().split(': ')[1]
|
||||
|
Reference in New Issue
Block a user