In my python-Selenium code, i should use many try-catch to pass the errors, and if i don't use it, my script doesn't continue.
for example if i don't use try catch, if my script doesn't find desc span i will have an error and i can't continue,
try :
libelle1produit = prod.find_element_by_css_selector(('.desc span')).text # libelle1produit OK
except:
pass
is there an alternative method for passing error?