diff --git a/django/db/utils.py b/django/db/utils.py
index 83e2452..67cfe33 100644
a
|
b
|
class ConnectionRouter(object):
|
95 | 95 | try: |
96 | 96 | module_name, klass_name = r.rsplit('.', 1) |
97 | 97 | module = import_module(module_name) |
98 | | router = getattr(module, klass_name)() |
99 | 98 | except ImportError, e: |
100 | 99 | raise ImproperlyConfigured('Error importing database router %s: "%s"' % (klass_name, e)) |
| 100 | try: |
| 101 | router = getattr(module, klass_name)() |
101 | 102 | except AttributeError: |
102 | 103 | raise ImproperlyConfigured('Module "%s" does not define a "%s" database router' % (module, klass_name)) |
103 | 104 | else: |