Skip to content

tools: fix getattr call in mavextract.py#1189

Open
Aryan95614 wants to merge 1 commit into
ArduPilot:masterfrom
Aryan95614:fix-mavextract-getattr
Open

tools: fix getattr call in mavextract.py#1189
Aryan95614 wants to merge 1 commit into
ArduPilot:masterfrom
Aryan95614:fix-mavextract-getattr

Conversation

@Aryan95614

Copy link
Copy Markdown

`older_message()` in `tools/mavextract.py` uses `m.getattr(a)` which calls a nonexistent method on the MAVLink message object and raises `AttributeError`. Should be `getattr(m, a)`. Same fix for the `lastm` call on the next line.

older_message() uses m.getattr(a) which calls a nonexistent method
on the MAVLink message object. Should be getattr(m, a).
@peterbarker

Copy link
Copy Markdown
Contributor

How did you provoke this error?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants