Commit bc0b6cca authored by Jeremy Hylton's avatar Jeremy Hylton

Exit early if the object is not in the cache.

Fix bug reported by John D. Heintz.
parent 65391a99
...@@ -84,8 +84,8 @@ ...@@ -84,8 +84,8 @@
############################################################################## ##############################################################################
"""Database connection support """Database connection support
$Id: Connection.py,v 1.51 2001/05/10 23:00:14 jeremy Exp $""" $Id: Connection.py,v 1.52 2001/05/16 20:47:38 jeremy Exp $"""
__version__='$Revision: 1.51 $'[11:-2] __version__='$Revision: 1.52 $'[11:-2]
from cPickleCache import PickleCache from cPickleCache import PickleCache
from POSException import ConflictError, ExportError from POSException import ConflictError, ExportError
...@@ -630,6 +630,8 @@ class Connection(ExportImport.ExportImport): ...@@ -630,6 +630,8 @@ class Connection(ExportImport.ExportImport):
assert oid is not None assert oid is not None
serial = store_return serial = store_return
obj = self._cache.get(oid, None) obj = self._cache.get(oid, None)
if obj is None:
return
if serial == ResolvedSerial: if serial == ResolvedSerial:
obj._p_changed = None obj._p_changed = None
else: else:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment