1
0
mirror of https://github.com/kellyjonbrazil/jc.git synced 2025-06-19 00:17:51 +02:00

use ParseError instead of generic Exception

This commit is contained in:
Kelly Brazil
2020-07-23 11:31:35 -07:00
parent 72d80e95bb
commit 2341e456a0

View File

@ -189,7 +189,7 @@ def loads(data):
probe_rtt = None probe_rtt = None
else: else:
message = "Expected probe RTT or *. Got: '{}'".format(probe_rtt_annotation[0]) message = "Expected probe RTT or *. Got: '{}'".format(probe_rtt_annotation[0])
raise Exception(message) raise ParseError(message)
probe_annotation = probe_rtt_annotation[2] or None probe_annotation = probe_rtt_annotation[2] or None