diff --git a/djangoapps/ssl_auth/ssl_auth.py b/djangoapps/ssl_auth/ssl_auth.py index 8c96d4b9a6..df3029da93 100755 --- a/djangoapps/ssl_auth/ssl_auth.py +++ b/djangoapps/ssl_auth/ssl_auth.py @@ -173,7 +173,8 @@ class SSLLoginBackend(ModelBackend): try: user = User.objects.get(username=username) # if user already exists don't create it except User.DoesNotExist: - raise "User does not exist. Not creating user; potential schema consistency issues" + if not settings.DEBUG: + raise "User does not exist. Not creating user; potential schema consistency issues" #raise ImproperlyConfigured("[SSLLoginBackend] creating %s" % repr(info)) user = User(username=username, password=GenPasswd()) # create new User user.is_staff = False