Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

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
Adrian Holovaty authored July 11, 2006

Showing 1 changed file with 1 addition and 1 deletion. Show diff stats Hide diff stats

  1. 2  django/contrib/auth/models.py
2  django/contrib/auth/models.py
@@ -239,7 +239,7 @@ def get_profile(self):
239 239
                 app_label, model_name = settings.AUTH_PROFILE_MODULE.split('.')
240 240
                 model = models.get_model(app_label, model_name)
241 241
                 self._profile_cache = model._default_manager.get(user__id__exact=self.id)
242  
-            except ImportError, ImproperlyConfigured:
  242
+            except (ImportError, ImproperlyConfigured):
243 243
                 raise SiteProfileNotAvailable
244 244
         return self._profile_cache
245 245
 

0 notes on commit f3a586a

Please sign in to comment.
Something went wrong with that request. Please try again.