Catching ImportError and raising SiteProfileNotAvailable in auth.models makes it tricky to figure out missing modules
|Reported by:||Owned by:||nobody|
|Has patch:||no||Needs documentation:||no|
|Needs tests:||no||Patch needs improvement:||no|
Catching all ImportError exceptions in django.contrib.auth.models.get_profile means it can be impossible to debug missing modules. The only solution seems to be modifying the source, seeing the underlying exception, then changing it back.
It doesn't seem very user friendly to give an exception that doesn't give the user any clue as to what the problem actually is.