mirror of
https://github.com/django/django.git
synced 2025-07-04 17:59:13 +00:00
Removed redundant error check.
git-svn-id: http://code.djangoproject.com/svn/django/branches/multiple-db-support@3230 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
parent
f19713f56f
commit
966df94e75
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user