I have a widget with some dropdown options. Based on the user's input I have to ask for followup information. I am seeing an EOFError for my input statement for card_info in the follow_up function. The function is not taking user input for the card info either. I tried putting it in a try/catch block but it didn't help. How can I get the function to take card_info from the user so I can use that information to call other functions?
WIDGET_ACTIONS = [
"Re-order this Item",
"Cancel my order",
"Hold for credit",
]
def user_input():
widget = interact_manual(
follow_up, action=WIDGET_ACTIONS,
)
def follow_up(action):
if action == "Hold for credit":
card_info = input("Please enter your card number")
print(card_info)