Mercurial > p > roundup > code
diff roundup/backends/indexer_dbm.py @ 5966:8e4c5db44fde
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.
| author | John Rouillard <rouilj@ieee.org> |
|---|---|
| date | Wed, 30 Oct 2019 18:20:21 -0400 |
| parents | 4c7662c86a36 |
| children | 3175bb92ca28 |
line wrap: on
line diff
--- a/roundup/backends/indexer_dbm.py Wed Oct 30 18:10:59 2019 -0400 +++ b/roundup/backends/indexer_dbm.py Wed Oct 30 18:20:21 2019 -0400 @@ -131,6 +131,9 @@ def text_splitter(self, text): """Split text/plain string into a list of words """ + if not text: + return [] + # case insensitive text = text.upper()
