Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Fixed #3505 -- Added handling for the error raised when the user forg…

…ets the comma in a single element tuple when defining AUTHENTICATION_BACKENDS. Thanks for the help identifying this problem, Mario Gonzalez <gonzalemario@gmail.com>.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@5678 bcc190cf-cafb-0310-a4f2-bffc1f526a37
commit 6335317a423c9533a13d741c673fc45d1f052121 1 parent b8d0dc7
Russell Keith-Magee authored July 13, 2007

Showing 1 changed file with 2 additions and 0 deletions. Show diff stats Hide diff stats

  1. 2  django/contrib/auth/__init__.py
2  django/contrib/auth/__init__.py
@@ -12,6 +12,8 @@ def load_backend(path):
12 12
         mod = __import__(module, {}, {}, [attr])
13 13
     except ImportError, e:
14 14
         raise ImproperlyConfigured, 'Error importing authentication backend %s: "%s"' % (module, e)
  15
+    except ValueError, e:
  16
+        raise ImproperlyConfigured, 'Error importing authentication backends. Is AUTHENTICATION_BACKENDS a correctly defined list or tuple?'
15 17
     try:
16 18
         cls = getattr(mod, attr)
17 19
     except AttributeError:

0 notes on commit 6335317

Please sign in to comment.
Something went wrong with that request. Please try again.