Commits

Marc Abramowitz committed 0918d7a

Print the error message and exit instead of reraising exception

Comments (0)

Files changed (1)

south/db/generic.py

         try:
             cursor.execute(sql, params)
         except DatabaseError as exc:
-            print('FATAL ERROR - The following SQL query failed: %s' % sql)
-            raise
+            print >> sys.stderr, 'FATAL ERROR - The following SQL query failed: %s' % sql
+            print >> sys.stderr, 'The error was: %s' % exc
+            sys.exit(1)
 
         try:
             return cursor.fetchall()