Skip to content

Commit

Permalink
Use hasattr to check for dump_verbose method
Browse files Browse the repository at this point in the history
  • Loading branch information
shancock884 committed Jan 3, 2024
1 parent f8f572f commit 0f3676a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/mavlogdump.py
Original file line number Diff line number Diff line change
Expand Up @@ -379,7 +379,7 @@ def match_type(mtype, patterns):
elif args.verbose and istlog:
mavutil.dump_message_verbose(sys.stdout, m)
print("")
elif args.verbose and isbin:
elif args.verbose and hasattr(m,"dump_verbose"):
m.dump_verbose(sys.stdout)
print("")
else:
Expand Down

0 comments on commit 0f3676a

Please sign in to comment.