Skip to content

Commit

Permalink
Replace timeout exception so its compatible with Ruby 1.9.3 too.
Browse files Browse the repository at this point in the history
  • Loading branch information
roychri committed Oct 2, 2015
1 parent 98adf87 commit fccacf5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/geocoder/lookups/base.rb
Original file line number Diff line number Diff line change
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 fccacf5

Please sign in to comment.