Skip to content

python: Don't exit immediately on discovery fail.#1062

Merged
igaw merged 1 commit intolinux-nvme:masterfrom
martin-belanger:exception-handling
Sep 4, 2025
Merged

python: Don't exit immediately on discovery fail.#1062
igaw merged 1 commit intolinux-nvme:masterfrom
martin-belanger:exception-handling

Conversation

@martin-belanger
Copy link
Copy Markdown
Contributor

This is just a minor fix to the example code.

In the example, when ctrl.discover() fails, we should not invoke sys.exit() immediately, but instead allow the ctrl.disconnect() to be invoked.

In the example, when ctrl.discover() fails, we should not invoke
sys.exit() immediately, but instead allow the ctrl.disconnect()
to be invoked.

Signed-off-by: Martin Belanger <[email protected]>
Copy link
Copy Markdown
Collaborator

@hreinecke hreinecke left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, noticed it myself. Was about to send a PR, but you beat me to it.

@igaw igaw merged commit 305b209 into linux-nvme:master Sep 4, 2025
12 checks passed
@igaw
Copy link
Copy Markdown
Collaborator

igaw commented Sep 4, 2025

Thanks!

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.

3 participants