Going green with non empty request strings

This commit is contained in:
Mario de Frutos 2018-01-31 12:25:35 +01:00
parent 2bbd6bac91
commit 544e0fa763

View File

@ -67,7 +67,7 @@ class HereMapsGeocoder(Traceable):
def geocode(self, **kwargs):
params = {}
for key, value in kwargs.iteritems():
if value:
if value and value.strip():
params[key] = value
if not params:
return []