Raising an exception in Ruby requires a .new. Add a timeout line to the capabilities call.
This commit is contained in:
parent
97769170fd
commit
d4954bc7b1
2 changed files with 4 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue