Opened 3 years ago

Closed 3 years ago

#21014 closed Bug (fixed)

MigrationLoader gobbles ImportError despite trying not to.

Reported by: loic84 Owned by: Tim Graham <timograham@…>
Component: Migrations Version: master
Severity: Normal Keywords:
Cc: Triage Stage: Accepted
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

  File "/Users/loic/Dev/django/django/db/migrations/loader.py", line 75, in load_disk
    directory = os.path.dirname(module.__file__)
UnboundLocalError: local variable 'module' referenced before assignment

Change History (3)

comment:2 Changed 3 years ago by Tim Graham

Triage Stage: UnreviewedAccepted

comment:3 Changed 3 years ago by Tim Graham <timograham@…>

Owner: set to Tim Graham <timograham@…>
Resolution: fixed
Status: newclosed

In 82bbb9fe812ac2a575bf1291055093adfb9b8fff:

Fixed #21014 -- Fixed gobbled ImportError in MigrationLoader.

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