On APIError or APIConnectionError we may want to retry. I'm not sure context managers can support this but it'd be nice if the client could have a retry strategy and if it gets one of those exceptions it sleeps with exponential back off with configurable base and start value and then starts at the top of the contextmanager block. And then raises the exception after a configurable number of failures.
On APIError or APIConnectionError we may want to retry. I'm not sure context managers can support this but it'd be nice if the client could have a retry strategy and if it gets one of those exceptions it sleeps with exponential back off with configurable base and start value and then starts at the top of the contextmanager block. And then raises the exception after a configurable number of failures.