]> git.openstreetmap.org Git - rails.git/blobdiff - app/controllers/api_controller.rb
Fix rubocop lint issues
[rails.git] / app / controllers / api_controller.rb
index 1b9a1ad6994e9ce9b59fe723a8f62957169cef63..659d35477773df771928cd4c4b4e0666888bf1d5 100644 (file)
@@ -25,7 +25,7 @@ class ApiController < ApplicationController
       bbox = BoundingBox.from_bbox_params(params)
       bbox.check_boundaries
       bbox.check_size
-    rescue Exception => err
+    rescue StandardError => err
       report_error(err.message)
       return
     end
@@ -121,7 +121,7 @@ class ApiController < ApplicationController
       bbox = BoundingBox.from_bbox_params(params)
       bbox.check_boundaries
       bbox.check_size
-    rescue Exception => err
+    rescue StandardError => err
       report_error(err.message)
       return
     end