X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/ba503e02d205e132881f7cd860d160c9562fb1b1..8ecb2c79f7146ecbb69d08cd38954836dc6d1b4c:/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