moved confirmation question into the while loop
This commit is contained in:
@@ -94,8 +94,8 @@ def ask_for_confirmation(question):
|
|||||||
logger.debug("Asking user for confirmation")
|
logger.debug("Asking user for confirmation")
|
||||||
logger.debug("Question: {}".format(question))
|
logger.debug("Question: {}".format(question))
|
||||||
print(question)
|
print(question)
|
||||||
confirmation = input("y/n> ")
|
|
||||||
while True:
|
while True:
|
||||||
|
confirmation = input("y/n> ")
|
||||||
logger.debug("User answered: {}".format(confirmation))
|
logger.debug("User answered: {}".format(confirmation))
|
||||||
if confirmation.casefold() == "y":
|
if confirmation.casefold() == "y":
|
||||||
return True
|
return True
|
||||||
|
|||||||
Reference in New Issue
Block a user