lib/geocoder/lookups/nominatim.rb in geocoder-1.2.7 vs lib/geocoder/lookups/nominatim.rb in geocoder-1.2.8
- old
+ new
@@ -25,10 +25,10 @@
doc.is_a?(Array) ? doc : [doc]
end
def parse_raw_data(raw_data)
if raw_data.include?("Bandwidth limit exceeded")
- raise_error(Geocoder::OverQueryLimitError) || warn("Over API query limit.")
+ raise_error(Geocoder::OverQueryLimitError) || Geocoder.log(:warn, "Over API query limit.")
else
super(raw_data)
end
end