1
0
mirror of https://github.com/kellyjonbrazil/jc.git synced 2025-06-23 00:29:59 +02:00

remove \n from end of line in exception message

This commit is contained in:
Kelly Brazil
2021-09-12 16:42:47 -07:00
parent 5e7f302a9c
commit 787df51239

View File

@ -171,7 +171,7 @@ def parse(data, raw=False, quiet=False):
# Only support -l option
if not re.match(r'[-dclpsbDCMnP?]([-r][-w][-xsS]){2}([-r][-w][-xtT])[+]?', line):
raise ParseError(f'Unparsable line: {line[0:60]}')
raise ParseError(f'Unparsable line: {line.rstrip()[0:60]}')
# split filenames and links
if len(parsed_line) == 9: