I think I have this now. when using except, just call the main function again.
I have a python script that is using
while:
try:
except:
I am wondering how to stop it running (not exit script) and then return to the beginning.
Stop script and return to beginning