]> git.openstreetmap.org Git - rails.git/blobdiff - lib/nominatim.rb
Fix rubocop lint issues
[rails.git] / lib / nominatim.rb
index 10eac78e5db335d2d2fe43a3f6514821c20de4d5..c5d60cebd5fdea15555dd0e826764b61a0b02d20 100644 (file)
@@ -12,7 +12,7 @@ module Nominatim
         response = OSM::Timer.timeout(4) do
           REXML::Document.new(Net::HTTP.get(URI.parse(url)))
         end
         response = OSM::Timer.timeout(4) do
           REXML::Document.new(Net::HTTP.get(URI.parse(url)))
         end
-      rescue Exception
+      rescue StandardError
         response = nil
       end
 
         response = nil
       end