Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Pylint: Specifying exception names in the overgeneral-exceptions option without module name is deprecated

Tags:

python

pylint

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.

Getting PyLint error. I dont have any Except clause in my file and yet I see this error.

like image 341
Aseem Avatar asked Sep 10 '25 18:09

Aseem


1 Answers

This is just a warning for future pylint releases, you can ignore it. If you want to address it now you will need to open your .pylintrc configuration file (should be located at ~/.pylintrc) and replace:

overgeneral-exceptions=BaseException,
                       Exception

with:

overgeneral-exceptions=builtins.BaseException,
                       builtins.Exception
like image 64
Kleomenis Katevas Avatar answered Sep 12 '25 09:09

Kleomenis Katevas