commit-gnue
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

r5549 - trunk/gnue-common/src/datasources/drivers/DBSIG2


From: reinhard
Subject: r5549 - trunk/gnue-common/src/datasources/drivers/DBSIG2
Date: Sat, 27 Mar 2004 13:27:44 -0600 (CST)

Author: reinhard
Date: 2004-03-27 13:27:43 -0600 (Sat, 27 Mar 2004)
New Revision: 5549

Modified:
   trunk/gnue-common/src/datasources/drivers/DBSIG2/Connection.py
Log:
Fixed cursor closing after exception.


Modified: trunk/gnue-common/src/datasources/drivers/DBSIG2/Connection.py
===================================================================
--- trunk/gnue-common/src/datasources/drivers/DBSIG2/Connection.py      
2004-03-27 19:10:02 UTC (rev 5548)
+++ trunk/gnue-common/src/datasources/drivers/DBSIG2/Connection.py      
2004-03-27 19:27:43 UTC (rev 5549)
@@ -96,11 +96,13 @@
     try:
       cursor = self.native.cursor ()
       cursor.execute (s)
-    finally:
+    except:
+      (exc_type, exc_value, exc_traceback) = sys.exc_info ()
       try:
         cursor.close ()
       except:
         pass
+      raise exc_type, exc_value, exc_traceback
     return cursor
 
   # Execute the given SQL statement and return the result matrix





reply via email to

[Prev in Thread] Current Thread [Next in Thread]