Opened 6 years ago

Closed 6 years ago

#12718 closed (fixed)

If there's an AttributeError in a database router module, it gets swallowed up by the wrong except clause

Reported by: jbalogh Owned by: nobody
Component: Database layer (models, ORM) Version: 1.2-alpha
Severity: Keywords:
Cc: Triage Stage: Unreviewed
Has patch: yes Needs documentation:
Needs tests: Patch needs improvement:
Easy pickings: UI/UX:

Description

The attached patch tightens up the try blocks.

Attachments (1)

router-attr-error.diff (803 bytes) - added by jbalogh 6 years ago.
if there's an AttributeError in the router module, it gets swallowed up by the wrong except

Download all attachments as: .zip

Change History (2)

Changed 6 years ago by jbalogh

if there's an AttributeError in the router module, it gets swallowed up by the wrong except

comment:1 Changed 6 years ago by russellm

  • Resolution set to fixed
  • Status changed from new to closed

(In [12336]) Fixed #12718 -- Tighten up the error handling when loading database routers. Thanks to Jeff Balogh for the report and patch.

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