Commit 2a82ac80 authored by Chris McDonough's avatar Chris McDonough

Fixed bad errorlogging.

parent c31fa77f
...@@ -84,7 +84,7 @@ ...@@ -84,7 +84,7 @@
############################################################################## ##############################################################################
"""Simple column indices""" """Simple column indices"""
__version__='$Revision: 1.13 $'[11:-2] __version__='$Revision: 1.14 $'[11:-2]
from Globals import Persistent from Globals import Persistent
from Acquisition import Implicit from Acquisition import Implicit
...@@ -200,14 +200,18 @@ class UnIndex(Persistent, Implicit): ...@@ -200,14 +200,18 @@ class UnIndex(Persistent, Implicit):
return None return None
set = index.get(k, None) set = index.get(k, None)
if set is not None: if set is not None:
LOG('UnIndex', ERROR, ('unindex_object tried to retrieve set %s'
'from index %s but couldn\'t. This '
'should not happen.' % (repr(set), str(k))))
try: try:
set.remove(i) set.remove(i)
except: except:
LOG('UnIndex', ERROR, ('unindex_object could not remove ' LOG('UnIndex', ERROR, ('unindex_object could not remove '
'integer id %s from index.' % str(k))) 'integer id %s from index %s. This '
'should not happen.'
% (str(i), str(k))))
else:
LOG('UnIndex', ERROR, ('unindex_object tried to retrieve set %s '
'from index %s but couldn\'t. This '
'should not happen.' % (repr(set),str(k))))
del unindex[i] del unindex[i]
self._index = index self._index = index
......
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