Repository navigation
Conversation
Closed
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? |
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.
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". |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This changes APIException to have
.messagenot.msg, aligning it with all Python error classes.This also addresses #432 by being less noisy about errors on MAVLink parsing thread.