[Zope3-checkins] CVS: Zope3/src/zodb - db.py:1.1.2.2

Barry Warsaw barry@wooz.org
Mon, 23 Dec 2002 16:36:28 -0500


Update of /cvs-repository/Zope3/src/zodb
In directory cvs.zope.org:/tmp/cvs-serv11996

Modified Files:
      Tag: NameGeddon-branch
	db.py 
Log Message:
StorageError lives in zodb.interfaces now


=== Zope3/src/zodb/db.py 1.1.2.1 => 1.1.2.2 ===
--- Zope3/src/zodb/db.py:1.1.2.1	Mon Dec 23 14:30:43 2002
+++ Zope3/src/zodb/db.py	Mon Dec 23 16:36:27 2002
@@ -24,7 +24,7 @@
 from types import StringType
 import logging
 
-from zodb import POSException
+from zodb.interfaces import StorageError
 from zodb.connection import Connection
 from zodb.serialize import getDBRoot
 from zodb.ztransaction import Transaction
@@ -321,7 +321,7 @@
         try:
             self._prepare(txn)
             self._storage.tpc_vote(txn)
-        except POSException.StorageError, err:
+        except StorageError, err:
             logging.getLogger("DB").info("Error during prepare: %s", err)
             return False
         else: