Skip to content
This repository has been archived by the owner on May 13, 2020. It is now read-only.

Commit

Permalink
- Fix small bug related to ZCTextIndex attempting to index the
Browse files Browse the repository at this point in the history
        results of a callable.  Do not attempt to index None.
  • Loading branch information
mcdonc committed Feb 28, 2003
1 parent 4511334 commit ef5bf87
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions ZCTextIndex.py
Expand Up @@ -170,6 +170,8 @@ def _index_object(self, docid, obj, threshold=None, attr=None):
return 0
if callable(text):
text = text()
if text is None:
return 0
count = self.index.index_doc(docid, text)
self._p_changed = 1 # XXX
return count
Expand Down

0 comments on commit ef5bf87

Please sign in to comment.