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 = {}
|
output_line = {}
|
||||||
|
|
||||||
try:
|
try:
|
||||||
|
# skip blank lines
|
||||||
|
if line.strip() == '':
|
||||||
|
continue
|
||||||
|
|
||||||
|
# skip warning lines
|
||||||
|
if line.startswith('WARNING: '):
|
||||||
|
continue
|
||||||
|
|
||||||
# check for PATTERN
|
# check for PATTERN
|
||||||
if line.startswith('PATTERN: '):
|
if line.startswith('PATTERN: '):
|
||||||
s.pattern = line.strip().split(': ')[1]
|
s.pattern = line.strip().split(': ')[1]
|
||||||
|
Reference in New Issue
Block a user