Skip to content

Commit

Permalink
oops, whoosh.Writer does not really have a close() method
Browse files Browse the repository at this point in the history
  • Loading branch information
staffanm committed Nov 2, 2013
1 parent f7bd9e8 commit 62356a8
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion ferenda/fulltextindex.py
Original file line number Diff line number Diff line change
Expand Up @@ -320,7 +320,6 @@ def update(self, uri, repo, basefile, title, identifier, text, **kwargs):
def commit(self):
if self._writer:
self._writer.commit()
self._writer.close()
if not isinstance(self._writer, whoosh.writing.BufferedWriter):
# A bufferedWriter can be used again after commit(), a regular writer cannot
self._writer = None
Expand Down

0 comments on commit 62356a8

Please sign in to comment.