So I've got something of the form:
def func():
while True:
do_stuff()
try:
func()
except:
func()
I had expected that if anything happened to my func loop, it would start again, however in actual fact errors cause it to crash. How can I make it just restart if anything goes wrong?