summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdrian Holovaty <adrian@holovaty.com>2006-07-11 14:03:24 +0000
committerAdrian Holovaty <adrian@holovaty.com>2006-07-11 14:03:24 +0000
commitf3a586a557cee431ea2839ef0c1efc2a53e28c3d (patch)
tree9efa9e6d65ca1810f6273a0aaa4454e69736b57d
parent33f47ae30a57d408ce6ead782517ff96fc5afe2a (diff)
Fixed #2326 -- Fixed exception catching in django.contrib.auth.models. Thanks, mir@noris.de
git-svn-id: http://code.djangoproject.com/svn/django/trunk@3328 bcc190cf-cafb-0310-a4f2-bffc1f526a37
-rw-r--r--django/contrib/auth/models.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/django/contrib/auth/models.py b/django/contrib/auth/models.py
index e37f5a4497..cca3c62252 100644
--- a/django/contrib/auth/models.py
+++ b/django/contrib/auth/models.py
@@ -239,7 +239,7 @@ class User(models.Model):
app_label, model_name = settings.AUTH_PROFILE_MODULE.split('.')
model = models.get_model(app_label, model_name)
self._profile_cache = model._default_manager.get(user__id__exact=self.id)
- except ImportError, ImproperlyConfigured:
+ except (ImportError, ImproperlyConfigured):
raise SiteProfileNotAvailable
return self._profile_cache