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