return if there's no text

This commit is contained in:
James Turk 2012-05-16 15:12:16 -04:00
parent dfb556a49f
commit 6153bdaf2a

View File

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