I made these functions. As you can see, it is a recursive function. I think that if there is an error in try:, I wrote the code that goes back to try:
try: