diff --git a/django/contrib/auth/__init__.py b/django/contrib/auth/__init__.py
index 0b3ccf7..0feab15 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 | if not 'argument' in e.message |
| 42 | raise TypeError(e.message) |
| 43 | else: |
| 44 | # This backend doesn't accept these credentials as arguments. Try the next one. |
| 45 | continue |
43 | 46 | if user is None: |
44 | 47 | continue |
45 | 48 | # Annotate the user object with the path of the backend. |