[Zodb-checkins] CVS: ZODB3/ZODB - Transaction.py:1.49.4.2

Jeremy Hylton jeremy at zope.com
Thu Jan 22 23:51:15 EST 2004


Update of /cvs-repository/ZODB3/ZODB
In directory cvs.zope.org:/tmp/cvs-serv32143

Modified Files:
      Tag: Zope-2_7-branch
	Transaction.py 
Log Message:
Critical fix: Don't call sys.exc_info() after executing more user code.

Pass the exc_info() we captured at the top to the log.  If we don't do
it this way, an exception in _commit_error() will reset _exc_info()
and the log won't contain the original exception.


=== ZODB3/ZODB/Transaction.py 1.49.4.1 => 1.49.4.2 ===
--- ZODB3/ZODB/Transaction.py:1.49.4.1	Mon Sep 15 17:26:56 2003
+++ ZODB3/ZODB/Transaction.py	Thu Jan 22 23:51:13 2004
@@ -262,7 +262,7 @@
                     LOG('ZODB', ERROR,
                         "A storage error occured during transaction "
                         "abort.  This shouldn't happen.",
-                        error=sys.exc_info())
+                        error=error)
                 raise error[0], error[1], error[2]
         finally:
             del objects[:] # clear registered




More information about the Zodb-checkins mailing list