diff MySQLdb/connections.py @ 62:7fe4b0b37e8e MySQLdb

Fix #2671682. (from 1.2 branch)
author adustman
date Sun, 08 Mar 2009 17:50:34 +0000
parents 4093fb968cb7
children 2d6a35051f64
line wrap: on
line diff
--- a/MySQLdb/connections.py	Sun Mar 08 16:02:16 2009 +0000
+++ b/MySQLdb/connections.py	Sun Mar 08 17:50:34 2009 +0000
@@ -29,7 +29,7 @@
         connection.messages.append(error)
     del cursor
     del connection
-    raise errorclass(errorvalue)
+    raise errorclass, errorvalue
 
 
 class Connection(object):