Merge pull request #12 from TargetedEntropy/debug_packet_fix
fixed return for unknown packet
This commit is contained in:
commit
c7123c8118
|
@ -39,6 +39,9 @@ class Packet(object):
|
|||
|
||||
@overridable_property
|
||||
def definition(self):
|
||||
if not hasattr(self, "context"):
|
||||
return None
|
||||
|
||||
return None if self.context is None else \
|
||||
self.get_definition(self.context)
|
||||
|
||||
|
|
Loading…
Reference in New Issue