NosuchelementException
from selenium.common.exceptions import NoSuchElementException
Horrible Hoopoe
from selenium.common.exceptions import NoSuchElementException
except NoSuchElementException:
# handle the element not existing