Diff of /MySQLdb/cursors.py [e70512] .. [566baa] Maximize Restore

  Switch to side-by-side view

--- a/MySQLdb/cursors.py
+++ b/MySQLdb/cursors.py
@@ -194,9 +194,9 @@
                 self.errorhandler(self, TypeError, msg)
         except:
             exc, value, traceback = sys.exc_info()
-            del traceback
             self.messages.append((exc, value))
             self.errorhandler(self, exc, value)
+            del traceback
 
         if not self._defer_warnings:
             self._warning_check()