python try then change something and try again if fails

30

for i in range(0,100):
    while True:
        try:
            # do stuff
        except SomeSpecificException:
            continue
        break

Comments

Submit
0 Comments