[Zope3-checkins] CVS: Zope3/src/transaction - _transaction.py:1.1.2.11

Tim Peters tim.one at comcast.net
Fri Mar 19 16:53:06 EST 2004


Update of /cvs-repository/Zope3/src/transaction
In directory cvs.zope.org:/tmp/cvs-serv27085/src/transaction

Modified Files:
      Tag: jeremy-txn-branch
	_transaction.py 
Log Message:
abort():  Be graceful if abort_sub() calls fail.


=== Zope3/src/transaction/_transaction.py 1.1.2.10 => 1.1.2.11 ===
--- Zope3/src/transaction/_transaction.py:1.1.2.10	Fri Mar 19 16:51:16 2004
+++ Zope3/src/transaction/_transaction.py	Fri Mar 19 16:53:05 2004
@@ -265,7 +265,13 @@
 
         if not subtransaction:
             for rm in self._sub.values():
-                rm.abort_sub(self)
+                try:
+                    rm.abort_sub(self)
+                except:
+                    if tb is None:
+                        t, v, tb = sys.exc_info()
+                    self.log.error("Failed to abort_sub resource manager: %s",
+                                   rm, exc_info=sys.exc_info())
 
         if not subtransaction:
             for s in self._synchronizers:




More information about the Zope3-Checkins mailing list