Skip to content

Commit

Permalink
strip whitespaces in confirmation answer
Browse files Browse the repository at this point in the history
  • Loading branch information
popenta committed Jan 18, 2024
1 parent 6a5a73d commit de793d3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion multiversx_sdk_cli/cli_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

0 comments on commit de793d3

Please sign in to comment.