Open leonkansh opened 4 years ago
Able to catch AttributeError
while amazon_result is False:
try:
amazon_price, URL = searchAmazon(search, requests, BeautifulSoup, driver)
amazon_result = True
except (AttributeError):
print("counter an attribute error")
print("loading...")
issues
Some issues are solved by calling the website again or running the entire program again.
Temporary solution
AtrributeError
, i.g.NoneType' object has no attribute 'find_all'