Skip to content

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