Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

python retry

import time
def retry(fun, max_tries=10):
    for i in range(max_tries):
        try:
           time.sleep(0.3) 
           fun()
           break
        except Exception:
            continue
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #python #retry
ADD COMMENT
Topic
Name
6+4 =