diff options
| author | Russell Keith-Magee <russell@keith-magee.com> | 2008-08-11 13:11:25 +0000 |
|---|---|---|
| committer | Russell Keith-Magee <russell@keith-magee.com> | 2008-08-11 13:11:25 +0000 |
| commit | 3958c36319d5724d3478e1d8664a5aee4322c386 (patch) | |
| tree | d09bc368eb45b9ec663cb621390375da5d77dc44 /django/db/__init__.py | |
| parent | 9dc4ba875f21d5690f6ad5995123a67a3c44bafe (diff) | |
Corrected a problem with the error message when the nominated database backend doesn't exist. Thanks to Ramiro Morales for the report and fix.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@8297 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'django/db/__init__.py')
| -rw-r--r-- | django/db/__init__.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/django/db/__init__.py b/django/db/__init__.py index 73e97a481f..ffcd64b35b 100644 --- a/django/db/__init__.py +++ b/django/db/__init__.py @@ -28,7 +28,7 @@ except ImportError, e: available_backends.sort() if settings.DATABASE_ENGINE not in available_backends: raise ImproperlyConfigured, "%r isn't an available database backend. Available options are: %s\nError was: %s" % \ - (settings.DATABASE_ENGINE, ", ".join(map(repr, available_backends, e_user))) + (settings.DATABASE_ENGINE, ", ".join(map(repr, available_backends)), e_user) else: raise # If there's some other error, this must be an error in Django itself. |
