1
0
mirror of https://github.com/kellyjonbrazil/jc.git synced 2025-08-08 22:36:48 +02:00

update ParseError message

This commit is contained in:
Kelly Brazil
2020-07-27 15:13:32 -07:00
parent f52f3163bc
commit 6086920332

View File

@ -384,7 +384,7 @@ def parse(data, raw=False, quiet=False):
# check if header row exists, otherwise raise exception
if not data.splitlines()[0].startswith('traceroute to ') and not data.splitlines()[0].startswith('traceroute6 to '):
raise ParseError('Traceroute header line not found. Be sure to redirect STDERR to STDOUT on OSX/FreeBSD.')
raise ParseError('Traceroute header line not found. Be sure to redirect STDERR to STDOUT on some operating systems.')
tr = loads(data)
hops = tr.hops