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 19257,KeyError swallowed while loading command classes,giovannibajo,nobody,"The code in django.core.management.call_command() swallows all KeyErrors generated while loading a command class, and turns them into a ""command unknown"" error message. The Test command for instance executes user's code while loading the command class (see django.test.simple, line 36), so any kind of KeyError in user code while running tests gets swallowed and turned into a ""unknown command test"", which baffles the user. I don't know whether it's a bug in call_command() (should check for KeyErrors only while looking up a command in the command dictionaries) or in the test framework (shouldn't let user exceptions slip out of simple.py).",Bug,closed,Core (Management commands),1.4,Normal,fixed,,giovannibajo,Accepted,0,0,0,0,1,0