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

Change exit() to sys.exit() #339

Merged
merged 1 commit into from
May 21, 2024
Merged

Conversation

tofu-rocketry
Copy link
Member

The exit() function is from site.py which may not be present depending on command line options. sys.exit on the other hand, will be there as it is imported.

@tofu-rocketry tofu-rocketry added this to the 3.4.1 milestone May 21, 2024
@tofu-rocketry tofu-rocketry self-assigned this May 21, 2024
@tofu-rocketry tofu-rocketry requested a review from a team as a code owner May 21, 2024 09:55
The "exit()" function is from site.py which may not be present depending
on command line options. "sys.exit" on the other hand, will be there as
it is imported.
Copy link

@norealroots norealroots left a comment

Choose a reason for hiding this comment

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

Looks good to me, happy to approve.

@tofu-rocketry tofu-rocketry merged commit 6f008a2 into apel:dev May 21, 2024
10 of 12 checks passed
@tofu-rocketry tofu-rocketry deleted the sys-exit branch May 21, 2024 15:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

Successfully merging this pull request may close these issues.

2 participants