Author: russellm
Date: 2010-01-10 18:54:27 -0600 (Sun, 10 Jan 2010)
New Revision: 12204

Modified:
   django/trunk/django/db/utils.py
Log:
Fixed #12558 -- Improved error handling when processing DATABASES setting. 
Thanks to Oliver Beattie for the report and patch.

Modified: django/trunk/django/db/utils.py
===================================================================
--- django/trunk/django/db/utils.py     2010-01-10 21:58:01 UTC (rev 12203)
+++ django/trunk/django/db/utils.py     2010-01-11 00:54:27 UTC (rev 12204)
@@ -56,7 +56,7 @@
         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)

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en.


Reply via email to