mirror of
https://github.com/kellyjonbrazil/jc.git
synced 2025-06-19 00:17:51 +02:00
limit parse error msg lenght
This commit is contained in:
@ -138,7 +138,7 @@ def parse(data, raw=False, quiet=False):
|
|||||||
continue
|
continue
|
||||||
|
|
||||||
if not re.match(r'[-dclpsbDCMnP?]([-r][-w][-xsS]){2}([-r][-w][-xtT])[+]?', line):
|
if not re.match(r'[-dclpsbDCMnP?]([-r][-w][-xsS]){2}([-r][-w][-xtT])[+]?', line):
|
||||||
raise ParseError(f'Unable to parse line: {line.strip()}')
|
raise ParseError(f'Unable to parse line: {line.strip()[:40]}')
|
||||||
|
|
||||||
parsed_line = line.strip().split(maxsplit=8)
|
parsed_line = line.strip().split(maxsplit=8)
|
||||||
output_line = {}
|
output_line = {}
|
||||||
|
Reference in New Issue
Block a user