Path 1: 522 calls (0.86)

ClassDef (522)

False (522)

1def _is_overgeneral_exception(self, exception: nodes.ClassDef) -> bool:
2        return (
3            exception.qname() in self.linter.config.overgeneral_exceptions
4            # TODO: 3.0: not a qualified name, deprecated
5            or "." not in exception.name
6            and exception.name in self.linter.config.overgeneral_exceptions
7            and exception.root().name == utils.EXCEPTIONS_MODULE
8        )
            

Path 2: 85 calls (0.14)

ClassDef (85)

True (85)

1def _is_overgeneral_exception(self, exception: nodes.ClassDef) -> bool:
2        return (
3            exception.qname() in self.linter.config.overgeneral_exceptions
4            # TODO: 3.0: not a qualified name, deprecated
5            or "." not in exception.name
6            and exception.name in self.linter.config.overgeneral_exceptions
7            and exception.root().name == utils.EXCEPTIONS_MODULE
8        )