]> git.openstreetmap.org Git - rails.git/blobdiff - config/initializers/abstract_adapter.rb
Raising an exception in Ruby requires a .new. Add a timeout line to the capabilities...
[rails.git] / config / initializers / abstract_adapter.rb
index 7b22a3cc6ccbd95cf5deda3203de5bbb87985d05..cfa32e4e93325336f979fd4289bfd701398913f1 100644 (file)
@@ -14,7 +14,7 @@ module ActiveRecord
         end
       rescue ActiveRecord::StatementInvalid => ex
         if ex =~ /^OSM::APITimeoutError: /
-          raise OSM::APITimeoutError
+          raise OSM::APITimeoutError.new
         else
           raise
         end