I define a custom exception:
>>> class MyException(Exception):
>>> pass
I create an exception instance:
>>> a = MyException()
I check if this is an exception. As expected, it is:
>>> isinstance(a, Exception)
True
But how do I check if the class is an exception class?
>>> myclass = MyException
>>> isinstance(myclass, Exception)
False