Ticket #6038: syncdb_reraise_import_error.diff

File syncdb_reraise_import_error.diff, 621 bytes (added by Thomas Güttler <hv@…>, 17 years ago)
  • django/core/management/commands/syncdb.py

     
    3333        for app_name in settings.INSTALLED_APPS:
    3434            try:
    3535                __import__(app_name + '.management', {}, {}, [''])
    36             except ImportError:
    37                 pass
     36            except ImportError, exc:
     37                if exc.args[0] != 'No module named management':
     38                    raise
    3839
    3940        cursor = connection.cursor()
    4041
Back to Top