python try then change something and try again if fails

Solutions on MaxInterview for python try then change something and try again if fails by the best coders in the world

showing results for - "python try then change something and try again if fails"
Jordan
20 Aug 2020
1for i in range(0,100):
2    while True:
3        try:
4            # do stuff
5        except SomeSpecificException:
6            continue
7        break