X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/4291cfb8aed27b119552f6334e0e5ee38ebd1ceb..5345c6e3640cc5f356b55348a5834e3a1987532d:/apps/search/index.py?ds=sidebyside diff --git a/apps/search/index.py b/apps/search/index.py index f09a42e53..822429e75 100644 --- a/apps/search/index.py +++ b/apps/search/index.py @@ -830,11 +830,10 @@ class Search(SolrIndex): idx += 1 except IOError, e: - log.error("Cannot open snippet file for book id = %d [rev=%d], %s" % (book_id, revision, e)) + log.error("Cannot open snippet file for book id = %d [rev=%s], %s" % (book_id, revision, e)) return [] finally: - if snippets: - snippets.close() + snippets.close() # remove verse end markers.. snips = map(lambda s: s and s.replace("/\n", "\n"), snips)