#21439 closed Bug (fixed)
UnboundLocalError in auth backends' get_user
Reported by: | Matt Robenolt | Owned by: | nobody |
---|---|---|---|
Component: | contrib.auth | Version: | dev |
Severity: | Normal | Keywords: | auth, bug, user |
Cc: | Triage Stage: | Accepted | |
Has patch: | yes | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | no | UI/UX: | no |
Description
If get_user_model
were to raise an exception, it ends up masking that exception and in turn raising UnboundLocalError: local variable 'UserModel' referenced before assignment
.
Change History (6)
comment:2 by , 11 years ago
Triage Stage: | Unreviewed → Accepted |
---|---|
Version: | 1.5 → master |
comment:4 by , 11 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
Note:
See TracTickets
for help on using tickets.
Seems to have been introduced with the first implementation of the new auth backends.
https://github.com/django/django/commit/70a0de37d132e5f1514fb939875f69649f103124