Django

Code

Changeset 5678

Show
Ignore:
Timestamp:
07/13/07 00:03:33 (1 year ago)
Author:
russellm
Message:

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 <gonzalemario@gmail.com>.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • django/trunk/django/contrib/auth/__init__.py

    r5472 r5678  
    1313    except ImportError, e: 
    1414        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?' 
    1517    try: 
    1618        cls = getattr(mod, attr)