diff --git a/django/db/utils.py b/django/db/utils.py
index 00b3568..7c3e413 100644
a
|
b
|
class ConnectionRouter(object):
|
111 | 111 | except ImportError, e: |
112 | 112 | raise ImproperlyConfigured('Error importing database router %s: "%s"' % (klass_name, e)) |
113 | 113 | try: |
114 | | router = getattr(module, klass_name)() |
| 114 | router_class = getattr(module, klass_name) |
115 | 115 | except AttributeError: |
116 | 116 | raise ImproperlyConfigured('Module "%s" does not define a database router name "%s"' % (module, klass_name)) |
| 117 | else: |
| 118 | router = router_class() |
117 | 119 | else: |
118 | 120 | router = r |
119 | 121 | self.routers.append(router) |