diff --git a/django/contrib/auth/__init__.py b/django/contrib/auth/__init__.py
index 0b3ccf7..8614b2a 100644
a
|
b
|
def authenticate(**credentials):
|
37 | 37 | for backend in get_backends(): |
38 | 38 | try: |
39 | 39 | user = backend.authenticate(**credentials) |
40 | | except TypeError: |
41 | | # This backend doesn't accept these credentials as arguments. Try the next one. |
42 | | continue |
| 40 | except TypeError as e: |
| 41 | raise TypeError(e.message) |
43 | 42 | if user is None: |
44 | 43 | continue |
45 | 44 | # Annotate the user object with the path of the backend. |