diff --git a/markdownrunner.py b/markdownrunner.py index 6607c6c..e14948a 100755 --- a/markdownrunner.py +++ b/markdownrunner.py @@ -158,6 +158,11 @@ def user_action(hunk: Sequence[Command], context=None) -> Sequence[Command]: return hunk elif answer.startswith(('n', 'N')): return [] + else: + # Bad choice or error. Notify user and try again + print("Bad choice, or maybe bug.") + # No goto, use recursion + return user_action(hunk, context)