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
817ec38925
commit
1f485bf968
|
|
@ -116,6 +116,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