Skip to content

Adds smarter error notification when errors occur. - #447

Merged
tcr3dr merged 1 commit into
masterfrom
tcr-432
Nov 11, 2015
Merged

tcr3dr merged 1 commit into
masterfrom
tcr-432

Conversation

@tcr3dr

@tcr3dr tcr3dr commented Nov 11, 2015

Copy link
Copy Markdown
Contributor

This changes APIException to have .message not .msg, aligning it with all Python error classes.

This also addresses #432 by being less noisy about errors on MAVLink parsing thread.

@hamishwillee

Copy link
Copy Markdown
Contributor

@tcr3dr Don't you also need to update the APIException definition in dronekit.lib for to also have .message?

I don't think this has a documentation implication unless you think we should maintain a list of common exceptions and how to debug them?

@tcr3dr

tcr3dr commented Nov 11, 2015

Copy link
Copy Markdown
Contributor Author

@hamishwillee Probably no documentation impact. This code now works, which we may want to document at some point (but right now requires cross platform testing, i.e. the os.exception bit only was tested on OS X): #414 (comment)

tcr3dr added a commit that referenced this pull request Nov 11, 2015
Adds smarter error notification when errors occur.
@tcr3dr
tcr3dr merged commit 75b572c into master Nov 11, 2015
@tcr3dr
tcr3dr deleted the tcr-432 branch November 11, 2015 20:09
@hamishwillee

Copy link
Copy Markdown
Contributor

@tcr3dr OK. The only other reason we might document is to suggest wrapping connect calls in a try/catch block in our "programming guide".

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