You can try either elt.NoSuchElementException or driver.NoSuchElementException as it is probably defined in the scope of one of them.
You can also use from selenium import NoSuchElementException to bring it into scope.
or, you can also try using this
from selenium.common.exceptions import NoSuchElementException
If you are interested to learn Selenium on a much deeper level and want to become a professional in the testing domain, check out Intellipaat’s Selenium training courses!