MigrationLoader gobbles ImportError despite trying not to.
Reported by: |
loic84 |
Owned by: |
Tim Graham <timograham@…> |
Component:
|
Migrations
|
Version:
|
dev
|
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
|
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)
Triage Stage: |
Unreviewed → Accepted
|
Owner: |
set to Tim Graham <timograham@…>
|
Resolution: |
→ fixed
|
Status: |
new → closed
|
PR https://github.com/django/django/pull/1541.