X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/ba503e02d205e132881f7cd860d160c9562fb1b1..90fd22e2a35cea1e4bc55185f93267c49fb37b6e:/app/controllers/api_controller.rb diff --git a/app/controllers/api_controller.rb b/app/controllers/api_controller.rb index 7e1b06a8d..75db7f73b 100644 --- a/app/controllers/api_controller.rb +++ b/app/controllers/api_controller.rb @@ -177,7 +177,7 @@ class ApiController < ApplicationController ## # wrap an api call in a timeout def api_call_timeout(&block) - Timeout.timeout(Settings.api_timeout, Timeout::Error, &block) + Timeout.timeout(Settings.api_timeout, &block) rescue ActionView::Template::Error => e e = e.cause