I'm using Python 3.8.3 on Windows 10. I have the following code:
import # all the necessary modules
try:
    # do something
except WebDriverException:
    print(sys.exc_info()[0])
Upon the exception, I receive the following:
<class 'selenium.common.exceptions.SessionNotCreatedException'>
How do I get print() to output only the string within <class>?:
selenium.common.exceptions.SessionNotCreatedException
Any help would be appreciated.
 
     
     
    