Skip to content

Commit b34b3b3

Browse files
authored
fix: add explicit module names
pylint triggered: pylint: Command line or configuration file:1: UserWarning: Specifying exception names in the overgeneral-exceptions option without module name is deprecated and support for it will be removed in pylint 3.0. Use fully qualified name (maybe 'builtins.StandardError' ?) instead. pylint: Command line or configuration file:1: UserWarning: Specifying exception names in the overgeneral-exceptions option without module name is deprecated and support for it will be removed in pylint 3.0. Use fully qualified name (maybe 'builtins.Exception' ?) instead. pylint: Command line or configuration file:1: UserWarning: Specifying exception names in the overgeneral-exceptions option without module name is deprecated and support for it will be removed in pylint 3.0. Use fully qualified name (maybe 'builtins.BaseException' ?) instead. Suggestion works out.
1 parent 74605a6 commit b34b3b3

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

pylintrc

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -424,6 +424,6 @@ valid-metaclass-classmethod-first-arg=mcs
424424

425425
# Exceptions that will emit a warning when being caught. Defaults to
426426
# "Exception"
427-
overgeneral-exceptions=StandardError,
428-
Exception,
429-
BaseException
427+
overgeneral-exceptions=builtins.StandardError,
428+
builtins.Exception,
429+
builtins.BaseException

0 commit comments

Comments
 (0)