Skip to content

Commit

Permalink
Added shortcut get_field_as_list function to EKLayer
Browse files Browse the repository at this point in the history
  • Loading branch information
KimiNewt committed Jul 9, 2022
1 parent fa967d6 commit 5fd72fe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pyshark/packet/layers/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ def __dir__(self):
def __getattr__(self, item):
val = self.get_field(item)
if val is None:
raise AttributeError()
raise AttributeError(f"{item} does not exist in Layer")
return val

def pretty_print(self, writer=None):
Expand Down

0 comments on commit 5fd72fe

Please sign in to comment.