diff --git a/django/core/management/__init__.py b/django/core/management/__init__.py index 8fa583707e..affdb65c20 100644 --- a/django/core/management/__init__.py +++ b/django/core/management/__init__.py @@ -22,7 +22,7 @@ def load_command_class(module, name): """ Given a command name, returns the Command class instance. Raises Raises ImportError if a command module doesn't exist, or AttributeError - if a command module doesn't include . + if a command module doesn't contain a Command instance. """ # Let any errors propogate. return getattr(__import__('%s.management.commands.%s' % (module, name), {}, {}, ['Command']), 'Command')()