Date: 2009-11-17 | Modified: 2013-01-22 | Tags: decorators, python | 11 Comments The Python wiki has a Retry decorator example which retries calling a failure-prone function using an exponential backoff algorithm. I modified it slightly to check for exceptions instead of a False return value to indicate failure. Each time the decorated function throws an exception, the decorator will wait a