Hey everybody I\'m working on a data scraping project and I\'m looking for a clean way to repeat a function call if an exception is raised.
Pseudo-code:
Use a loop
i = 0 while True: try: myfunc(x); break; except myError: i = i + 1; # print "Trying again" if i > 5: raise myError2;