Skip to content

Commit

Permalink
Merge pull request #922 from roychri/ruby_2_only_timeout_exception
Browse files Browse the repository at this point in the history
Replace timeout exception so its compatible with Ruby 1.9.3 too.
  • Loading branch information
alexreisner committed Oct 2, 2015
2 parents d544234 + fccacf5 commit 065bb34
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/geocoder/lookups/base.rb
Expand Up @@ -283,7 +283,7 @@ def make_api_request(query)
end
client.request(req)
end
rescue Net::OpenTimeout, Net::ReadTimeout
rescue Timeout::Error
raise Geocoder::LookupTimeout
end

Expand Down

0 comments on commit 065bb34

Please sign in to comment.