Commits

Konstantine Rybnikov committed 9338757

skip non-found adapters

  • Participants
  • Parent commits 46c9fb7

Comments (0)

Files changed (1)

File south/db/__init__.py

     # Loop over the defined databases, gathering up their engines
     db_engines = dict([
         # Note we check to see if contrib.gis has overridden us.
-        (alias, "south.db.%s" % engine_modules.get(db_settings['ENGINE'], None))
+        (alias, "south.db.%s" % engine_modules[db_settings['ENGINE']])
         for alias, db_settings in settings.DATABASES.items()
+        if db_settings['ENGINE'] in engine_modules
     ])
     # Update with any overrides
     db_engines.update(getattr(settings, "SOUTH_DATABASE_ADAPTERS", {}))