From aec65e53643fd0eaa320e669f8d454cf9c21bac3 Mon Sep 17 00:00:00 2001 From: Pablo Martin Date: Wed, 12 Jun 2024 00:10:14 +0200 Subject: [PATCH] improve input formatting --- xexe/processes.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/xexe/processes.py b/xexe/processes.py index 6777407..9344099 100644 --- a/xexe/processes.py +++ b/xexe/processes.py @@ -90,8 +90,9 @@ def obtain_rates_from_source( if large_api_call_planned and not process_state.ignore_warnings: user_confirmation_string = "i understand" user_response = input( - f"WARNING: you are about to execute a large call {len(currency_and_date_combinations)} to a metered API. Type '{user_confirmation_string}' to move forward." + f"WARNING: you are about to execute a large call {len(currency_and_date_combinations)} to a metered API. Type '{user_confirmation_string}' to move forward: " ) + if user_response != user_confirmation_string: raise Exception("Execution aborted.")