Author: justi9
Date: 2010-09-22 10:42:35 -0400 (Wed, 22 Sep 2010)
New Revision: 4328
Modified:
mgmt/newdata/cumin/python/cumin/widgets.py
Log:
For an issue that appeared as a side effect of bz 636445, don't rollback a connection
that is already closed
Modified: mgmt/newdata/cumin/python/cumin/widgets.py
===================================================================
--- mgmt/newdata/cumin/python/cumin/widgets.py 2010-09-22 01:22:35 UTC (rev 4327)
+++ mgmt/newdata/cumin/python/cumin/widgets.py 2010-09-22 14:42:35 UTC (rev 4328)
@@ -1346,8 +1346,10 @@
raise
except:
conn = self.app.database.get_connection()
- conn.rollback()
+ if not conn.closed:
+ conn.rollback()
+
raise
def do_process(self, session):
Show replies by date