In code where there are different old-style classes such as this one:
class customException: pass
and exceptions arise in this way:
raise customException()
Is there a type to catch all these exceptions in the old style? eg:
try: ... except EXCEPTION_TYPE as e:
Or at least is there a way to catch everything (old and new style) and get the exception object in a variable?
try: ... except:
source share