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

Do not call sys.exit in a thread #961

Merged
merged 1 commit into from
Oct 10, 2024

Conversation

tyrylu
Copy link

@tyrylu tyrylu commented Oct 10, 2024

Calling sys.exit from a thread other than the main one has no effect, because
sys.exit() only raises the SystemExit exceptions, which is ignored in
non-main threads.
Using a simple return statement is sufficient, and it also allows to
remove an import.

Calling sys.exit from a thread other than the main one has no effect, because
sys.exit() only raises the SystemExit exceptions, which is ignored in
non-main threads.
Using a simple return statement is sufficient, and it also allows to
remove an import.
@sthibaul sthibaul merged commit 8fd9e6d into brailcom:master Oct 10, 2024
7 checks passed
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.

2 participants