Fixed #6038 -- Don't hide some types of errors in syncdb. Thanks, Thomas Güttler.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@6829 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
Malcolm Tredinnick 2007-12-02 15:17:14 +00:00
parent 04a20c0226
commit fc4129abbb
1 changed files with 3 additions and 2 deletions

View File

@ -33,8 +33,9 @@ class Command(NoArgsCommand):
for app_name in settings.INSTALLED_APPS:
try:
__import__(app_name + '.management', {}, {}, [''])
except ImportError:
pass
except ImportError, exc:
if not exc.args[0].startswith('No module named management'):
raise
cursor = connection.cursor()