From 841b42624365e573b5da8d020931bdb93e7ebc47 Mon Sep 17 00:00:00 2001 From: Adrian Holovaty Date: Thu, 21 Jul 2005 15:01:31 +0000 Subject: [PATCH] Cleaned up [269] a tiny bit git-svn-id: http://code.djangoproject.com/svn/django/trunk@272 bcc190cf-cafb-0310-a4f2-bffc1f526a37 --- django/core/db/__init__.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/django/core/db/__init__.py b/django/core/db/__init__.py index 29b2a4e813..7dca2a25fd 100644 --- a/django/core/db/__init__.py +++ b/django/core/db/__init__.py @@ -25,8 +25,8 @@ except ImportError, exc: backend_dir = os.path.join(__path__[0], 'backends') available_backends = [f[:-3] for f in os.listdir(backend_dir) if f.endswith('.py') and not f.startswith('__init__')] available_backends.sort() - raise ImproperlyConfigured, "Could not load database backend: %s. Is DATABASE_ENGINE (currently, %r) spelled correctly? Available options are: %s" % (exc, DATABASE_ENGINE, ", ".join(map(repr, available_backends))) - #(DATABASE_ENGINE, ', '.join(map(repr, available_backends)))k + raise ImproperlyConfigured, "Could not load database backend: %s. Is your DATABASE_ENGINE setting (currently, %r) spelled correctly? Available options are: %s" % \ + (exc, DATABASE_ENGINE, ", ".join(map(repr, available_backends))) DatabaseError = dbmod.DatabaseError db = dbmod.DatabaseWrapper()