From 6153bdaf2a53b6effdff113ccdb0b5ae7ad3ac92 Mon Sep 17 00:00:00 2001 From: James Turk Date: Wed, 16 May 2012 15:12:16 -0400 Subject: [PATCH] return if there's no text --- oyster/ext/elasticsearch.py | 1 + 1 file changed, 1 insertion(+) diff --git a/oyster/ext/elasticsearch.py b/oyster/ext/elasticsearch.py index a52e61d..451e569 100644 --- a/oyster/ext/elasticsearch.py +++ b/oyster/ext/elasticsearch.py @@ -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']})