improve input formatting
This commit is contained in:
parent
0fdf765fef
commit
aec65e5364
1 changed files with 2 additions and 1 deletions
|
|
@ -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.")
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue