Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

python try then change something and try again if fails

for i in range(0,100):
    while True:
        try:
            # do stuff
        except SomeSpecificException:
            continue
        break
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #python #change #fails
ADD COMMENT
Topic
Name
1+1 =