If parsing fails on body after succeeding on head, return the
partially-parsed packet as part of the error.
This commit is contained in:
parent
a14da1d78d
commit
3a12e45342
|
|
@ -117,6 +117,7 @@ def parse(packet):
|
|||
# capture ParseErrors and attach the packet
|
||||
except (UnknownFormat, ParseError) as exp:
|
||||
exp.packet = packet
|
||||
exp.parsed = parsed
|
||||
raise
|
||||
|
||||
# if we fail all attempts to parse, try beacon packet
|
||||
|
|
|
|||
Loading…
Reference in New Issue