Author: russellm
Date: 2007-07-13 00:03:33 -0500 (Fri, 13 Jul 2007)
New Revision: 5678
Modified:
django/trunk/django/contrib/auth/__init__.py
Log:
Fixed #3505 -- Added handling for the error raised when the user forgets the
comma in a single element tuple when defining AUTHENTICATION_BACKENDS. Thanks
for the help identifying this problem, Mario Gonzalez <[EMAIL PROTECTED]>.
Modified: django/trunk/django/contrib/auth/__init__.py
===================================================================
--- django/trunk/django/contrib/auth/__init__.py 2007-07-12 15:26:37 UTC
(rev 5677)
+++ django/trunk/django/contrib/auth/__init__.py 2007-07-13 05:03:33 UTC
(rev 5678)
@@ -12,6 +12,8 @@
mod = __import__(module, {}, {}, [attr])
except ImportError, e:
raise ImproperlyConfigured, 'Error importing authentication backend
%s: "%s"' % (module, e)
+ except ValueError, e:
+ raise ImproperlyConfigured, 'Error importing authentication backends.
Is AUTHENTICATION_BACKENDS a correctly defined list or tuple?'
try:
cls = getattr(mod, attr)
except AttributeError:
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/django-updates?hl=en
-~----------~----~----~----~------~----~------~--~---