return if there's no text
This commit is contained in:
parent
dfb556a49f
commit
6153bdaf2a
@ -21,6 +21,7 @@ class ElasticSearchPush(Task):
|
|||||||
if not text:
|
if not text:
|
||||||
self.log.info('no text for %s', doc_id,
|
self.log.info('no text for %s', doc_id,
|
||||||
extra={'doc_class':doc['doc_class']})
|
extra={'doc_class':doc['doc_class']})
|
||||||
|
return
|
||||||
|
|
||||||
self.log.info('tracked %s', doc_id,
|
self.log.info('tracked %s', doc_id,
|
||||||
extra={'doc_class':doc['doc_class']})
|
extra={'doc_class':doc['doc_class']})
|
||||||
|
Loading…
Reference in New Issue
Block a user