Opened 18 years ago

Closed 18 years ago

#2326 closed defect (fixed)

[patch] contrib.auth.models catches exceptions wrongly

Reported by: mir@… Owned by: Adrian Holovaty
Component: Contrib apps Version: dev
Severity: normal Keywords:
Cc: Triage Stage: Unreviewed
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

It's quite trivial:

line 242:

            except ImportError, ImproperlyConfigured:

This will not catch ImproperlyConfigured, you need () around it. See patch.

Attachments (1)

auth-models-exception.diff (552 bytes ) - added by mir@… 18 years ago.
promised patch

Download all attachments as: .zip

Change History (2)

by mir@…, 18 years ago

Attachment: auth-models-exception.diff added

promised patch

comment:1 by Adrian Holovaty, 18 years ago

Resolution: fixed
Status: newclosed

(In [3328]) Fixed #2326 -- Fixed exception catching in django.contrib.auth.models. Thanks, mir@…

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