In case of general error, total service use should be incremented by searches length

This commit is contained in:
Juan Ignacio Sánchez Lara
2018-07-19 21:17:09 +02:00
parent 96fbf3080a
commit fd097724f1
2 changed files with 2 additions and 2 deletions

View File

@@ -62,7 +62,7 @@ def run_street_point_geocoder(plpy, GD, geocoder, service_manager, username, org
service_manager.logger.error('Error trying to bulk geocode street point', sys.exc_info(), data={"username": username, "orgname": orgname})
raise Exception('Error trying to bulk geocode street')
finally:
service_manager.quota_service.increment_total_service_use()
service_manager.quota_service.increment_total_service_use(len(searches))
StreetGeocoderSearch = namedtuple('StreetGeocoderSearch', 'id address city state country')