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 config.py prompt recursion #72

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

rillian
Copy link
Contributor

@rillian rillian commented Jun 27, 2024

The python config script function interactive_prompt_input recursed on error, requiring a balanced number of 0 entries to exit cleanly. This is unnecessary, since the prompt body itself already loops and can just fall through to the next iteration to re-prompt after an error.

This removes the recursive call so entering zero to finish scheme selection exits promptly.

Also removes trailing whitespace from python source files.

rillian added 2 commits June 27, 2024 12:54
The python config script `interactive_prompt_input` functions
recursed on error, requiring a balanced number of `0` entries
to exit cleanly. This is unnecessary, since the prompt body
itself already loops and can just fall through to the next
iteration to reprompt after an error.

Remove the recursive call so entering zero to finish scheme
selection exits promptly.
Some code editors flag this, or automatically correct it. Addressing
this in a single commit reduces confusion for readers and noise
in making other changes.
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