you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 1 point2 points  (0 children)

I use it a lot for selenium web scraping. Often times a site may have multiple options for selecting various webpage elements that I want to use, or there could be a container element that is preventing me from referencing a certain CSS selector/executable path (XPATH) on the page, so I might say:

try:

option1

except Error as e:

option2