Commit 8396570b authored by Andreas Jung's avatar Andreas Jung

- Collector #2332: SessionDataManger: don't swallow ConflictErrors

parent 64a3cdd3
...@@ -4,6 +4,13 @@ Zope Changes ...@@ -4,6 +4,13 @@ Zope Changes
Change information for previous versions of Zope can be found in the Change information for previous versions of Zope can be found in the
file HISTORY.txt. file HISTORY.txt.
Zope 2.9.9 (unreleased)
Bugs fixed
- Collector #2332: SessionDataManger: don't swallow ConflictErrors
Zope 2.9.8 (2007/07/05) Zope 2.9.8 (2007/07/05)
Bugs fixed Bugs fixed
......
...@@ -17,6 +17,7 @@ logger = logging.getLogger('Session Tracking') ...@@ -17,6 +17,7 @@ logger = logging.getLogger('Session Tracking')
import Globals import Globals
from OFS.SimpleItem import Item from OFS.SimpleItem import Item
from ZODB.POSException import ConflictError
from Acquisition import Implicit, Explicit, aq_base from Acquisition import Implicit, Explicit, aq_base
from Persistence import Persistent from Persistence import Persistent
from AccessControl.Owned import Owned from AccessControl.Owned import Owned
...@@ -222,6 +223,8 @@ class SessionDataManager(Item, Implicit, Persistent, RoleManager, Owned, Tabs): ...@@ -222,6 +223,8 @@ class SessionDataManager(Item, Implicit, Persistent, RoleManager, Owned, Tabs):
'External data container at %s in use' % args) 'External data container at %s in use' % args)
self._v_wrote_dc_type = 1 self._v_wrote_dc_type = 1
return self.unrestrictedTraverse(self.obpath) return self.unrestrictedTraverse(self.obpath)
except ConflictError:
raise
except: except:
raise SessionDataManagerErr, ( raise SessionDataManagerErr, (
"External session data container '%s' not found." % "External session data container '%s' not found." %
......
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