From 0f760aa7010d6e92df5b0e7faab32cf1244cd1a5 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Mat=C3=ADas=20Aguirre?= Date: Tue, 23 Nov 2010 11:08:32 -0200 Subject: [PATCH] Little improve on custom user class import. Refs gh-3 --- social_auth/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/social_auth/models.py b/social_auth/models.py index c09137a..b43a95e 100644 --- a/social_auth/models.py +++ b/social_auth/models.py @@ -23,7 +23,7 @@ try: # try to import User model override and validate needed fields if not all(callable(getattr(User, name, None)) for name in MANDATORY_METHODS): raise AttributeError, 'Some mandatory methods missing' -except: # fail silently and fallback to auth.User on any error +except AttributeError: # fail silently on missing setting from django.contrib.auth.models import User -- 2.39.5