﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
25445	`AttributeError` when `app_config` is missing attribute `models_module` in contenttypes/management.py	Clinton Christian	Clinton Christian	"
{{{
    if not app_config.models_module:
        return
}}}


The return statement is never reached since if `app_config` doesn't have a `models_module` attribute it raises an `AttributeError`.

Regardless of whether to allow the return statement to catch or return an `AttributeError`, this code should perhaps be changed to be more clear. I suggest either raising an `AttributeError` explicitly or using `gettattr`.

https://github.com/django/django/pull/5338"	Cleanup/optimization	assigned	Uncategorized	1.8	Normal				Unreviewed	1	0	0	0	0	0
