Commits

Marc Abramowitz  committed 780045c

Change to using the old exception-catching syntax.
South is still technically compatible down to Python 2.4.

  • Participants
  • Parent commits 0918d7a
  • Branches output_failing_sql

Comments (0)

Files changed (1)

File south/db/generic.py

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