Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

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
  • Loading branch information...
commit f3a586a557cee431ea2839ef0c1efc2a53e28c3d 1 parent 33f47ae
@adrianholovaty adrianholovaty authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  django/contrib/auth/models.py
View
2  django/contrib/auth/models.py
@@ -239,7 +239,7 @@ def get_profile(self):
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
Please sign in to comment.
Something went wrong with that request. Please try again.