Merge pull request #12 from TargetedEntropy/debug_packet_fix

fixed return for unknown packet
This commit is contained in:
TargetedEntropy 2023-03-24 12:51:48 -04:00 committed by GitHub
commit c7123c8118
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 0 deletions

View File

@ -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)