Permalink
Browse files

Fixed #12558 -- Improved error handling when processing DATABASES set…

…ting. Thanks to Oliver Beattie for the report and patch.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@12204 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
1 parent 71e8d5d commit 6c9150d8181de83f341b94059d70ad4f1c04a684 @freakboy3742 freakboy3742 committed Jan 11, 2010
Showing with 1 addition and 1 deletion.
  1. +1 −1 django/db/utils.py
View
2 django/db/utils.py
@@ -56,7 +56,7 @@ def ensure_defaults(self, alias):
except KeyError:
raise ConnectionDoesNotExist("The connection %s doesn't exist" % alias)
conn.setdefault('ENGINE', 'django.db.backends.dummy')
- if conn['ENGINE'] == 'django.db.backends.':
+ if conn['ENGINE'] == 'django.db.backends.' or not conn['ENGINE']:
conn['ENGINE'] = 'django.db.backends.dummy'
conn.setdefault('OPTIONS', {})
conn.setdefault('TEST_CHARSET', None)

0 comments on commit 6c9150d

Please sign in to comment.