sometimes extract_text can't get text

This commit is contained in:
James Turk 2012-05-16 14:36:01 -04:00
parent 1d441a8f86
commit dfb556a49f

View File

@ -18,6 +18,9 @@ class ElasticSearchPush(Task):
try:
text = kernel.extract_text(doc)
if not text:
self.log.info('no text for %s', doc_id,
extra={'doc_class':doc['doc_class']})
self.log.info('tracked %s', doc_id,
extra={'doc_class':doc['doc_class']})