1
0
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:
Kelly Brazil
2021-09-21 15:42:45 -07:00
parent 758d617668
commit 4f2a4e1dee

View File

@ -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]