Skip to content

Commit 0fb9039

Browse files
committed
Handle memory db indexer test
One of the tests passes a None object to the indexer as part of unsetting a string. If the text is False, return an empty list. As "", None don't add info to the indexer.
1 parent 90a5c40 commit 0fb9039

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

roundup/backends/indexer_dbm.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,9 @@ def splitter(self, text, ftype):
131131
def text_splitter(self, text):
132132
"""Split text/plain string into a list of words
133133
"""
134+
if not text:
135+
return []
136+
134137
# case insensitive
135138
text = text.upper()
136139

0 commit comments

Comments
 (0)