Modify

Ticket #698 (closed defect: fixed)

Opened 3 years ago

Last modified 2 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.

Attachments

Change History

comment:1 Changed 3 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].

View

Add a comment

Modify Ticket

Action
as closed
The resolution will be deleted. Next status will be 'reopened'
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.