Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a custom TelloException for catching. #129

Merged
merged 1 commit into from
Dec 25, 2021

Conversation

OskarZyg
Copy link
Contributor

With the current library, it is only possible to catch exceptions catching the Exception object, which is very broad and breaks PEP8.

This PR adds a custom TelloException object that lets us catch the TelloException rather than Exception, which is what is currently thrown by the library.

@M4GNV5
Copy link
Collaborator

M4GNV5 commented Dec 25, 2021

Looks good, thanks for the input. There is also a raise in swarm.py which we could change to use the new TelloException.

@M4GNV5 M4GNV5 merged commit f0209da into damiafuentes:master Dec 25, 2021
@OskarZyg OskarZyg deleted the custom-exceptions branch December 26, 2021 15:40
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.

None yet

2 participants