File tree Expand file tree Collapse file tree 1 file changed +1
-8
lines changed Expand file tree Collapse file tree 1 file changed +1
-8
lines changed Original file line number Diff line number Diff line change @@ -90,14 +90,7 @@ def open(self):
9090 # this means that Django wasn't able to configure itself using some defaults
9191 # provided (likely in a DJANGO_SETTINGS_MODULE environment variable)
9292 # so see if the user has specified a pylint option
93- if hasattr (self , "linter" ):
94- django_settings_module = self .linter .config .django_settings_module
95- else :
96- # TODO: remove this no-member ignore : this is to avoid the missing `config` for pylint 3+,
97- # and can be removed once pylint 2
98- # pylint: disable=no-member
99- django_settings_module = self .linter .config .django_settings_module
100-
93+ django_settings_module = self .linter .config .django_settings_module
10194 if django_settings_module is None :
10295 # we will warn the user that they haven't actually configured Django themselves
10396 self ._raise_warning = True
You can’t perform that action at this time.
0 commit comments