Hi I am trying to create a script that loops through a list of urls/links of products on a website. If the product is not available it will continue to the next product. So far I am able to loop through the list of product links but I am getting an error

This page isn’t working redirected you too many times.
Try clearing your cookies.

I am using driver.get(url) to go to each url and I have included driver.delete_all_cookies() in my code aswell.