We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent aeb435c commit fd06816Copy full SHA for fd06816
mypy_django_plugin/transformers/settings.py
@@ -13,6 +13,9 @@
13
14
def get_setting_sym(name: str, api: 'TypeChecker', settings_modules: List[str]) -> Optional[SymbolTableNode]:
15
for settings_mod_name in settings_modules:
16
+ if settings_mod_name not in api.modules:
17
+ continue
18
+
19
file = api.modules[settings_mod_name]
20
sym = file.names.get(name)
21
if sym is not None:
0 commit comments