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

Fix Cli error when exiting on some builds of python. #15762

Merged
merged 3 commits into from
Jul 14, 2023

Conversation

jack60612
Copy link
Contributor

@jack60612 jack60612 commented Jul 13, 2023

Purpose:

originally made sure the catch runs sys.exit not exit() which is not in some builds of python.
It also changed the error to a click exception to remove the need for the handling at all.

Current Behavior:

Changes to use click errors instead of std errors.

New Behavior:

N/A

Testing Notes:

Kinda hard to replicate, but this is a fix

@jack60612 jack60612 added the Fixed Required label for PR that categorizes merge commit message as "Fixed" for changelog label Jul 13, 2023
@jack60612 jack60612 marked this pull request as ready for review July 14, 2023 16:15
@jack60612 jack60612 requested a review from a team as a code owner July 14, 2023 16:15
@jack60612 jack60612 changed the title Fixes cli error when exiting. Fix Cli error when exiting on some builds of python. Jul 14, 2023
@jack60612 jack60612 requested a review from altendky July 14, 2023 19:11
arvidn
arvidn previously approved these changes Jul 14, 2023
chia/cmds/cmds_util.py Outdated Show resolved Hide resolved
@wallentx wallentx merged commit 9713c3f into main Jul 14, 2023
195 of 196 checks passed
@wallentx wallentx deleted the jn.fix-sneaky-python-bug branch July 14, 2023 22:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Fixed Required label for PR that categorizes merge commit message as "Fixed" for changelog
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants