summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJason Pellerin <jpellerin@gmail.com>2006-06-28 18:41:07 +0000
committerJason Pellerin <jpellerin@gmail.com>2006-06-28 18:41:07 +0000
commit966df94e7543d43e3aca759b9416f97e00f53132 (patch)
tree1ee22d6b8f54c3850d55233dad1c92d7ab70bc14
parentf19713f56f50fbe04290ca46ebe7b51f999e9d0f (diff)
Removed redundant error check.
git-svn-id: http://code.djangoproject.com/svn/django/branches/multiple-db-support@3230 bcc190cf-cafb-0310-a4f2-bffc1f526a37
-rw-r--r--django/db/__init__.py6
1 files changed, 1 insertions, 5 deletions
diff --git a/django/db/__init__.py b/django/db/__init__.py
index f519b5bea9..d37e8b34c7 100644
--- a/django/db/__init__.py
+++ b/django/db/__init__.py
@@ -98,11 +98,7 @@ class LazyConnectionManager(object):
try:
return self._connections[k]
except KeyError:
- try:
- return self.connect(k)
- except KeyError:
- raise ImproperlyConfigured, \
- "No database connection '%s' has been configured" % k
+ return self.connect(k)
def connect(self, name):
"""Return the connection with this name in