Skip to content

Optional prompts in genesis.py aren't optional #13

@vipervire

Description

@vipervire

Genesis.py prompts for "Ntfy Token (Optional, Enter to skip)" but requires you to enter some value to move on. I haven't used Ntfy enough to know if providing an invalid Ntfy token would break something or not.

The issue is the else branch of the prompt function loops forever until the user provides a non-empty value. When you pass "" as the default, if default: evaluates to False (empty string is falsy), so it hits the else branch and won't accept an empty input.

Could be fixed by checking "if default is not None" instead

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions