lib/geocoder/cache.rb in geocoder-1.6.5 vs lib/geocoder/cache.rb in geocoder-1.6.6

- old
+ new

@@ -16,10 +16,12 @@ when store.respond_to?(:get) store.get key_for(url) when store.respond_to?(:read) store.read key_for(url) end + rescue => e + warn "Geocoder cache read error: #{e}" end ## # Write to the Cache. # @@ -30,9 +32,11 @@ when store.respond_to?(:set) store.set key_for(url), value when store.respond_to?(:write) store.write key_for(url), value end + rescue => e + warn "Geocoder cache write error: #{e}" end ## # Delete cache entry for given URL, # or pass <tt>:all</tt> to clear all URLs.