aboutsummaryrefslogtreecommitdiff
path: root/lesana
diff options
context:
space:
mode:
authorElena ``of Valhalla'' Grandi <valhalla@trueelena.org>2018-09-01 18:18:15 +0200
committerElena ``of Valhalla'' Grandi <valhalla@trueelena.org>2018-09-01 18:18:15 +0200
commit2178154a17ce04c4d9cc21b7a9430e3a91dcb759 (patch)
treeca63774131483827772013bd5dbe5be159f4e037 /lesana
parent61f0b236013c3b708ecfe6214b53a98fd342fac4 (diff)
Don't die when indexing an empty list
Diffstat (limited to 'lesana')
-rw-r--r--lesana/collection.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/lesana/collection.py b/lesana/collection.py
index 0280f85..6c86436 100644
--- a/lesana/collection.py
+++ b/lesana/collection.py
@@ -179,6 +179,8 @@ class Collection(object):
values = entry.data.get(field['name'])
else:
values = [entry.data.get(field['name'])]
+ if not values:
+ values = []
for v in values:
try:
self.indexer.index_text(v)