Commits

Andrew Godwin  committed 630df53

Fix #1199 - broken __str__ on exception

  • Participants
  • Parent commits 6df4198

Comments (0)

Files changed (1)

File south/exceptions.py

 from __future__ import print_function
 
-from traceback import format_exception
+from traceback import format_exception, format_exc
 
 class SouthError(RuntimeError):
     pass
 
 class UnknownMigration(BrokenMigration):
     def __str__(self):
+        self.traceback = format_exc()
         return ("Migration '%(migration)s' probably doesn't exist.\n"
                 '%(traceback)s' % self.__dict__)