From de793d3e096b3ecc6de2dff3310e63ab61a44dff Mon Sep 17 00:00:00 2001 From: Alexandru Popenta Date: Thu, 18 Jan 2024 17:15:51 +0200 Subject: [PATCH] strip whitespaces in confirmation answer --- multiversx_sdk_cli/cli_config.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/multiversx_sdk_cli/cli_config.py b/multiversx_sdk_cli/cli_config.py index b32496df..2bd42622 100644 --- a/multiversx_sdk_cli/cli_config.py +++ b/multiversx_sdk_cli/cli_config.py @@ -113,6 +113,6 @@ def delete_config(args: Any): def confirm_continuation(file: Path): answer = input(f"The file `{str(file)}` will be deleted. Do you want to continue? (y/n)") - if answer.lower() not in ["y", "yes"]: + if answer.lower().strip() not in ["y", "yes"]: print("Confirmation not given. Stopping...") exit(1)