From febd18c3b309f8c9410585b3d0953f0cf26ab7cb Mon Sep 17 00:00:00 2001 From: Jonathan Teran Carballo Date: Thu, 16 Jul 2026 22:02:47 -0300 Subject: [PATCH] refactor: use unsafe_ask in favor of global error catch --- src/git_flow/command/base.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/git_flow/command/base.py b/src/git_flow/command/base.py index 74aa804..d2a7c41 100644 --- a/src/git_flow/command/base.py +++ b/src/git_flow/command/base.py @@ -179,7 +179,7 @@ def _io_status(message: str, prefix: str, style: str, title: Optional[str] = Non def io_confirm(question: str, default: bool = True) -> bool: - return questionary.confirm(question, default=default, auto_enter=False).ask() + return questionary.confirm(question, default=default, auto_enter=False).unsafe_ask() def io_choice(prompt: str, options: list[str]) -> str: @@ -189,7 +189,7 @@ def io_choice(prompt: str, options: list[str]) -> str: use_search_filter=True, use_jk_keys=False, instruction="Tipear o usar flechas", - ).ask() + ).unsafe_ask() def io_prompt( @@ -205,6 +205,6 @@ def io_prompt( value = questionary.text( message, default, validate=validator, instruction=instruction - ).ask() + ).unsafe_ask() return value.strip() if strip else value