Skip to content

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

Open
flowln wants to merge 2 commits into
bluesky:mainfrom
flowln:better_status_exceptions
Open

Propagate exceptions in AndStatus and Signal.set to the user#1230
flowln wants to merge 2 commits into
bluesky:mainfrom
flowln:better_status_exceptions

Conversation

@flowln

@flowln flowln commented Jan 28, 2025

Copy link
Copy Markdown

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 <sofia.ferreira@lnls.br>
This change both removes usage of a deprecate function call, and
improves debugging of exceptions in the code.

Signed-off-by: Sofia Donato Ferreira <sofia.ferreira@lnls.br>
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