improve input formatting

This commit is contained in:
Pablo Martin 2024-06-12 00:10:14 +02:00
parent 0fdf765fef
commit aec65e5364

View file

@ -90,8 +90,9 @@ def obtain_rates_from_source(
if large_api_call_planned and not process_state.ignore_warnings: if large_api_call_planned and not process_state.ignore_warnings:
user_confirmation_string = "i understand" user_confirmation_string = "i understand"
user_response = input( 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: if user_response != user_confirmation_string:
raise Exception("Execution aborted.") raise Exception("Execution aborted.")