contrib.auth.models.User.get_profile() throws AttributeError not SiteProfileNotAvailable
|Reported by:||jezdez||Owned by:||jezdez|
|Has patch:||yes||Needs documentation:||no|
|Needs tests:||no||Patch needs improvement:||no|
On line line 289 it checks if settings.AUTH_PROFILE_MODULE is set. This throws an AttributeError instead of the SiteProfileNotAvailable exception, if the setting is not given.
The attached patch fixes the issue.
Change History (5)
Changed 6 years ago by jezdez
comment:1 Changed 6 years ago by jezdez
- Needs documentation unset
- Needs tests unset
- Owner changed from nobody to jezdez
- Patch needs improvement unset
comment:2 Changed 6 years ago by mtredinnick
- milestone set to 1.0
- Triage Stage changed from Unreviewed to Accepted