Show More
@@ -43,7 +43,8 b' from rhodecode.model.scm import ScmModel' | |||||
43 | from rhodecode.lib import safe_unicode |
|
43 | from rhodecode.lib import safe_unicode | |
44 | from rhodecode.lib.indexers import INDEX_EXTENSIONS, SCHEMA, IDX_NAME |
|
44 | from rhodecode.lib.indexers import INDEX_EXTENSIONS, SCHEMA, IDX_NAME | |
45 |
|
45 | |||
46 | from vcs.exceptions import ChangesetError, RepositoryError |
|
46 | from vcs.exceptions import ChangesetError, RepositoryError, \ | |
|
47 | NodeDoesNotExistError | |||
47 |
|
48 | |||
48 | from whoosh.index import create_in, open_dir |
|
49 | from whoosh.index import create_in, open_dir | |
49 |
|
50 | |||
@@ -198,7 +199,7 b' class WhooshIndexingDaemon(object):' | |||||
198 |
|
199 | |||
199 | try: |
|
200 | try: | |
200 | node = self.get_node(repo, indexed_path) |
|
201 | node = self.get_node(repo, indexed_path) | |
201 | except ChangesetError: |
|
202 | except (ChangesetError, NodeDoesNotExistError): | |
202 | # This file was deleted since it was indexed |
|
203 | # This file was deleted since it was indexed | |
203 | log.debug('removing from index %s' % indexed_path) |
|
204 | log.debug('removing from index %s' % indexed_path) | |
204 | writer.delete_by_term('path', indexed_path) |
|
205 | writer.delete_by_term('path', indexed_path) |
General Comments 0
You need to be logged in to leave comments.
Login now