Skip to content

Commit

Permalink
Added a log line
Browse files Browse the repository at this point in the history
  • Loading branch information
ale-rt committed Apr 28, 2018
1 parent 98e0ff7 commit 827d117
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/Products/PluginIndexes/unindex.py
Original file line number Diff line number Diff line change
Expand Up @@ -563,6 +563,15 @@ def query_index(self, record, resultset=None):
s = index.get(k, None)
except TypeError:
# key is not valid for this Btree so the value is None
LOG.error(
'{context!s}: query_index tried '
'to look up key {key!r} from index {index!r} '
'but key was of the wrong type.'.format(
context=self.__class__.__name__,
key=k,
index=self.id,
)
)
s = None
# If None, try to bail early
if s is None:
Expand Down

0 comments on commit 827d117

Please sign in to comment.