Ask a question to get started
Enter to send•Shift+Enter new line
Check if an exception should trigger a retry.
should_retry_exception( exc: Exception, retry_on: RetryOn, ) -> bool
exc
Exception
The exception that occurred.
retry_on
RetryOn
Either a tuple of exception types to retry on, or a callable that takes an exception and returns True if it should be retried.
True