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

Fixed bad errorlogging.

parent c31fa77f
......@@ -84,7 +84,7 @@
##############################################################################
"""Simple column indices"""
__version__='$Revision: 1.13 $'[11:-2]
__version__='$Revision: 1.14 $'[11:-2]
from Globals import Persistent
from Acquisition import Implicit
......@@ -200,14 +200,18 @@ class UnIndex(Persistent, Implicit):
return None
set = index.get(k, 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:
set.remove(i)
except:
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]
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