Alex Gaynor  committed 408eebe

Made logging of traceback with broken migration not crash when str(exc) was performe.d

  • Participants
  • Parent commits ec3f288
  • Branches alex_gaynor/made-logging-of-traceback-with-broken-mi-1368725964914

Comments (0)

Files changed (1)

File south/

         self.exc_info = exc_info
         if self.exc_info:
             self.traceback = ''.join(format_exception(*self.exc_info))
+        else:
+            self.traceback = format_exc()
     def __str__(self):
         return ("While loading migration '%(migration)s':\n"
 class UnknownMigration(BrokenMigration):
     def __str__(self):
-        self.traceback = format_exc()
         return ("Migration '%(migration)s' probably doesn't exist.\n"
                 '%(traceback)s' % self.__dict__)