retry

Sometimes a Python function can fail because of something that is outside of your control. The most typical example of this is a failing request made to an external server. In these cases you don't want an entire program to fail, but you'd like to allow the program to wait for a moment before trying again.

Stamina is a great library for this! → calmcode