Show More
@@ -170,8 +170,12 b' class WhooshIndexingDaemon(object):' | |||||
170 | Adding doc to writer this function itself fetches data from |
|
170 | Adding doc to writer this function itself fetches data from | |
171 | the instance of vcs backend |
|
171 | the instance of vcs backend | |
172 | """ |
|
172 | """ | |
|
173 | try: | |||
|
174 | node = self.get_node(repo, path, index_rev) | |||
|
175 | except (ChangesetError, NodeDoesNotExistError): | |||
|
176 | log.debug("couldn't add doc - %s did not have %r at %s", repo, path, index_rev) | |||
|
177 | return 0, 0 | |||
173 |
|
178 | |||
174 | node = self.get_node(repo, path, index_rev) |
|
|||
175 | indexed = indexed_w_content = 0 |
|
179 | indexed = indexed_w_content = 0 | |
176 | # we just index the content of chosen files, and skip binary files |
|
180 | # we just index the content of chosen files, and skip binary files | |
177 | if node.extension in INDEX_EXTENSIONS and not node.is_binary: |
|
181 | if node.extension in INDEX_EXTENSIONS and not node.is_binary: |
General Comments 0
You need to be logged in to leave comments.
Login now