Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fixed #6038 -- Don't hide some types of errors in syncdb. Thanks, Tho…

…mas Güttler.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@6829 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit fc4129abbbff3981ed70b7203cf8aeef811242aa 1 parent 04a20c0
@malcolmt malcolmt authored
Showing with 3 additions and 2 deletions.
  1. +3 −2 django/core/management/commands/syncdb.py
View
5 django/core/management/commands/syncdb.py
@@ -33,8 +33,9 @@ def handle_noargs(self, **options):
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()
Please sign in to comment.
Something went wrong with that request. Please try again.