def retry_on_429(exc): """ Used to trigger retry on rate limit """ return isinstance(exc, errors.APIRateLimitError)