X-Git-Url: https://git.openstreetmap.org/rails.git/blobdiff_plain/ef7f3d800cbdd49b692df10d312e5fd880e2e938..baf10cd39289cd7e94a819305e46f43e85a136c6:/app/controllers/geocoder_controller.rb diff --git a/app/controllers/geocoder_controller.rb b/app/controllers/geocoder_controller.rb index 25042c474..0d39cdf0a 100644 --- a/app/controllers/geocoder_controller.rb +++ b/app/controllers/geocoder_controller.rb @@ -73,7 +73,7 @@ class GeocoderController < ApplicationController end render :action => "results" - rescue Exception => ex + rescue StandardError => ex @error = "Error contacting rpc.geocoder.us: #{ex}" render :action => "error" end @@ -99,7 +99,7 @@ class GeocoderController < ApplicationController end render :action => "results" - rescue Exception => ex + rescue StandardError => ex @error = "Error contacting www.npemap.org.uk: #{ex}" render :action => "error" end @@ -121,7 +121,7 @@ class GeocoderController < ApplicationController end render :action => "results" - rescue Exception => ex + rescue StandardError => ex @error = "Error contacting geocoder.ca: #{ex}" render :action => "error" end @@ -188,7 +188,7 @@ class GeocoderController < ApplicationController end render :action => "results" - # rescue Exception => ex + # rescue StandardError => ex # @error = "Error contacting nominatim.openstreetmap.org: #{ex.to_s}" # render :action => "error" end @@ -219,7 +219,7 @@ class GeocoderController < ApplicationController end render :action => "results" - rescue Exception => ex + rescue StandardError => ex @error = "Error contacting ws.geonames.org: #{ex}" render :action => "error" end @@ -251,7 +251,7 @@ class GeocoderController < ApplicationController end render :action => "results" - rescue Exception => ex + rescue StandardError => ex @error = "Error contacting nominatim.openstreetmap.org: #{ex}" render :action => "error" end @@ -281,7 +281,7 @@ class GeocoderController < ApplicationController end render :action => "results" - rescue Exception => ex + rescue StandardError => ex @error = "Error contacting ws.geonames.org: #{ex}" render :action => "error" end