Try Try Again

I've found that sometimes all it takes to get something working is to try again, literally.  A web resource or a third-party library will throw some random exception, and the next time I try, it works.  I wrote the following decorator that will simply cause the function to retry.  It's admittedly a hack, but it works until you find a better solution.

To use, I simply do: