~tseaver/zope.index/lp232516

« back to all changes in this revision

Viewing changes to src/zope/index/text/lexicon.py

  • Committer: Tres Seaver
  • Date: 2010-07-08 16:49:10 UTC
  • Revision ID: tseaver@agendaless.com-20100708164910-vbwbfawlroxgfs9f
Avoid raising an exception when indexing None.

Fixes LP #598776.

Show diffs side-by-side

added added

removed removed

Lines of Context:
59
59
        return self._wids.items()
60
60
 
61
61
    def sourceToWordIds(self, text):
 
62
        if text is None:
 
63
            text = ''
62
64
        last = _text2list(text)
63
65
        for element in self._pipeline:
64
66
            last = element.process(last)