Commits

Andrew Godwin committed a052610

Fixed #698: Throw field description error properly.

  • Participants
  • Parent commits abd2206

Comments (0)

Files changed (1)

File south/creator/changes.py

             try:
                 model_name, field_name = field_desc.split(".")
             except (TypeError, ValueError):
-                print "%r is not a valid field description." % field_desc
+                raise ValueError("%r is not a valid field description." % field_desc)
             model = models.get_model(self.migrations.app_label(), model_name)
             real_fields, meta, m2m_fields = self.split_model_def(model, model_defs[model_key(model)])
             yield ("AddField", {