Ticket #698 (closed defect: fixed)

Opened 4 years ago

Last modified 3 years ago

using schemamigration --add-field fails with cryptic message

Reported by: woolford.thomas@… Owned by: andrew
Priority: minor Milestone: 1.0
Component: commands Version: 0.7.2
Keywords: Cc:

Description

while trying to use "--add-field myfield" schemamigration failed with cryptic traceback module_name referenced before assignment.

traced back to line 407 in creator/changes.py prints an error message but this is lost above the traceback.

proposed change:
instead of print this message, throw the message in the traceback so that it's visible and the code doesn't continue to execute past an error condition.

Change History

comment:1 Changed 4 years ago by andrew

  • Status changed from new to closed
  • Resolution set to fixed
  • Milestone changed from The Future to 1.0

Fixed in [a0526109ef81].

Note: See TracTickets for help on using tickets.