X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/d4954bc7b1bc06431bea4e97af401e3ea6acd0e6..09c1098760f5d64c0fd0b8b9ee6d51f78a276e59:/config/initializers/abstract_adapter.rb diff --git a/config/initializers/abstract_adapter.rb b/config/initializers/abstract_adapter.rb index cfa32e4e9..24d7c56e1 100644 --- a/config/initializers/abstract_adapter.rb +++ b/config/initializers/abstract_adapter.rb @@ -13,7 +13,7 @@ module ActiveRecord old_log(sql, name) end rescue ActiveRecord::StatementInvalid => ex - if ex =~ /^OSM::APITimeoutError: / + if ex.message =~ /^OSM::APITimeoutError: / raise OSM::APITimeoutError.new else raise