Opened 11 years ago

Closed 11 years ago

#19975 closed Bug (wontfix)

Catching ImportError and raising SiteProfileNotAvailable in auth.models makes it tricky to figure out missing modules

Reported by: hansel@… Owned by: nobody
Component: contrib.auth Version: 1.5-rc-2
Severity: Normal Keywords:
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: yes UI/UX: no

Description

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.

Change History (1)

comment:1 by Claude Paroz, 11 years ago

Resolution: wontfix
Status: newclosed

You're probably right. However, get_profile is deprecated in Django 1.6 and will be removed in Django 1.7. We generally don't improve code in deprecated sections, unless it's serious (security/data loss/crasher). Thanks for the report anyway.

Note: See TracTickets for help on using tickets.
Back to Top