Selenium Python Handle Exceptions