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

Propagate exceptions in AndStatus and Signal.set to the user #1230

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

flowln
Copy link

@flowln flowln commented Jan 28, 2025

This PR replaces some deprecated usages of _finished(success=...) with their non-deprecated forms set_finished() and set_exception(...).

In particular, this enables propagation of some exceptions back to the user, easing some debugging of issues (I hate seeing the To obtain more specific, helpful errors in the future, update the Device to use set_exception(...) instead of _finished(success=False) message every time something goes wrong haha 😅)

Let me know if I missed something!

…nished

The prior is deprecated for some time already, replaced by the former.

Signed-off-by: Sofia Donato Ferreira <[email protected]>
This change both removes usage of a deprecate function call, and
improves debugging of exceptions in the code.

Signed-off-by: Sofia Donato Ferreira <[email protected]>
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.

1 participant