From 966df94e7543d43e3aca759b9416f97e00f53132 Mon Sep 17 00:00:00 2001 From: Jason Pellerin Date: Wed, 28 Jun 2006 18:41:07 +0000 Subject: [PATCH] Removed redundant error check. git-svn-id: http://code.djangoproject.com/svn/django/branches/multiple-db-support@3230 bcc190cf-cafb-0310-a4f2-bffc1f526a37 --- django/db/__init__.py | 6 +----- 1 file changed, 1 insertion(+), 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