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:
@ -189,7 +189,7 @@ def loads(data):
|
||||
probe_rtt = None
|
||||
else:
|
||||
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
|
||||
|
||||
|
Reference in New Issue
Block a user