[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
r5548 - trunk/gnue-common/src/datasources/drivers/DBSIG2
From: |
reinhard |
Subject: |
r5548 - trunk/gnue-common/src/datasources/drivers/DBSIG2 |
Date: |
Sat, 27 Mar 2004 13:10:03 -0600 (CST) |
Author: reinhard
Date: 2004-03-27 13:10:02 -0600 (Sat, 27 Mar 2004)
New Revision: 5548
Modified:
trunk/gnue-common/src/datasources/drivers/DBSIG2/Connection.py
Log:
Ignore error on closing cursor (which might be not open in case of an error
before).
Modified: trunk/gnue-common/src/datasources/drivers/DBSIG2/Connection.py
===================================================================
--- trunk/gnue-common/src/datasources/drivers/DBSIG2/Connection.py
2004-03-27 19:02:57 UTC (rev 5547)
+++ trunk/gnue-common/src/datasources/drivers/DBSIG2/Connection.py
2004-03-27 19:10:02 UTC (rev 5548)
@@ -96,9 +96,11 @@
try:
cursor = self.native.cursor ()
cursor.execute (s)
- except:
- cursor.close ()
- raise
+ finally:
+ try:
+ cursor.close ()
+ except:
+ pass
return cursor
# Execute the given SQL statement and return the result matrix
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- r5548 - trunk/gnue-common/src/datasources/drivers/DBSIG2,
reinhard <=