Method: pylint.checkers.exceptions.ExceptionsChecker.open
Calls: 1017, Exceptions: 0, Paths: 1Back
Path 1: 1017 calls (1.0)
1def open(self) -> None:
2 self._builtin_exceptions = _builtin_exceptions()
3 for exc_name in self.linter.config.overgeneral_exceptions:
4 if "." not in exc_name:
5 warnings.warn_explicit(
6 "Specifying exception names in the overgeneral-exceptions option"
7 " without module name is deprecated and support for it"
8 " will be removed in pylint 3.0."
9 f" Use fully qualified name (maybe 'builtins.{exc_name}' ?) instead.",
10 category=UserWarning,
11 filename="pylint: Command line or configuration file",
12 lineno=1,
13 module="pylint",
14 )
15 super().open()