Skip to content

Commit

Permalink
Call batcher call back only if results exist
Browse files Browse the repository at this point in the history
  • Loading branch information
fefi42 committed Aug 28, 2020
1 parent 23d43da commit 98602ac
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion weaviate/tools/batcher.py
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ def _update_batches_force(self):
self._print_errors(result)
self._reference_batch = weaviate.batch.ReferenceBatchRequest()

if self._return_values_callback is not None:
if self._return_values_callback is not None and len(result_collection) > 0:
self._return_values_callback(result_collection)

self._last_update = time.time()
Expand Down

0 comments on commit 98602ac

Please sign in to comment.