From 8968f0e6ec5bf5b03bef393c5f09e699dfd7c363 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Juan=20Ignacio=20S=C3=A1nchez=20Lara?= Date: Wed, 4 Jul 2018 13:36:18 +0200 Subject: [PATCH] Fix message --- .../cartodb_services/cartodb_services/here/bulk_geocoder.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/server/lib/python/cartodb_services/cartodb_services/here/bulk_geocoder.py b/server/lib/python/cartodb_services/cartodb_services/here/bulk_geocoder.py index dfc017b..0942394 100644 --- a/server/lib/python/cartodb_services/cartodb_services/here/bulk_geocoder.py +++ b/server/lib/python/cartodb_services/cartodb_services/here/bulk_geocoder.py @@ -35,8 +35,8 @@ class HereMapsBulkGeocoder(HereMapsGeocoder, StreetPointBulkGeocoder): } def _bulk_geocode(self, searches): - if len(searches) > self.MAX_STALLED_RETRIES: - raise "Batch size can't be larger than {}".format(self.MAX_STALLED_RETRIES) + if len(searches) > self.MAX_BATCH_SIZE: + raise "Batch size can't be larger than {}".format(self.MAX_BATCH_SIZE) if self._should_use_batch(searches): self._logger.debug('--> Batch geocode') return self._batch_geocode(searches)