Only catch NameError and TypeError when attempting to subclass an
exception (for compatibility with old versions of Python).
1 file changed